Function at 0x405050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x70b556
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x148]
mov ebp, ecx
push edi
push esi
lea ecx, [esp + 0x80]
mov byte [ebp + 0x83], 1
call fcn.004cd856
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004f8240
mov ecx, dword [esp + 0x8c]
xor ebx, ebx
add esp, 8
cmp ecx, ebx
je 0x4050b2
mov eax, ecx
jmp 0x40563f
cmp eax, ebx
je 0x4050c4
push eax
call fcn.004058a0
add esp, 4
jmp 0x40563f
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.004f82a7
mov ecx, dword [esp + 0x94]
add esp, 0x10
cmp ecx, ebx
je 0x4050f8
mov eax, ecx
jmp 0x40563f
cmp eax, ebx
je 0x405162
cmp eax, 6
jne 0x405153
cmp esi, ebx
mov dword [ebp + 0x88], eax
je 0x405111
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 0x138]
cmp eax, ebx
je 0x405121
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov dword [ebp + 0x138], esi
je 0x405131
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [ebp + 0x13c]
cmp eax, ebx
je 0x405141
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0x13c], esi
mov byte [ebp + 0x82], 1
jmp 0x40563d
cmp eax, 0x10
jne 0x4051c7
mov eax, 1
jmp 0x40563f
cmp dword [esp + 0x18], ebx
jne 0x4051c7
mov al, byte [esp + 0xb4]
lea edi, [ebp + 0x140]
and eax, 3
mov ecx, 0x26
lea esi, [esp + 0xa4]
inc eax
mov byte [ebp + 0x84], 1
rep movsd dword es:[edi], dword [esi]
je 0x4051c0
lea edi, [ebp + 0x110]
lea esi, [esp + 0xbc]
mov dword [esp + 0x14], eax
mov ecx, edi
call fcn.004ebcc8
push esi
push edi
call fcn.00405660
mov eax, dword [esp + 0x1c]
add esp, 8
add esi, 0x20
dec eax
mov dword [esp + 0x14], eax
jne 0x4051a1
mov esi, dword [esp + 0x14c]
mov edx, dword [esi]
lea edi, [ebp + 0x98]
push edi
push 2
push ebx
push ebx
push esi
call dword [edx + 0x10]
cmp eax, ebx
jne 0x40563f
mov eax, dword [esp + 0x150]
cmp eax, ebx
je 0x4051fb
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x40563f
push esi
lea ecx, [esp + 0x98]
call fcn.004cda02
lea edx, [esp + 0x4c]
push 1
push edx
mov dword [esp + 0x70], ebx
call fcn.004f9175
push 0x400
mov dword [esp + 0x150], ebx
call fcn.004de8c0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x68], eax
je 0x4052cc
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x94]
push ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], 0x400
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
call fcn.00405000
lea edx, [esp + 0x24]
push edx
call fcn.004f84c3
lea eax, [esp + 0x74]
push 0x727780
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x15c], 1
call fcn.004f863e
add esp, 0x18
cmp eax, 0xa
jne 0x4052df
mov esi, dword [esp + 0x78]
cmp esi, ebx
jne 0x4052a9
mov esi, 0x80004005
lea ecx, [esp + 0x24]
push 0x727780
push ecx
call fcn.004f84e5
mov edx, dword [esp + 0x70]
push edx
call fcn.004de8db
add esp, 0xc
mov eax, esi
jmp 0x40563f
push eax
call fcn.004de8db
add esp, 4
mov eax, 0x8007000e
jmp 0x40563f
cmp eax, ebx
jne 0x4055ab
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
or eax, ecx
jne 0x4055ab
lea ecx, [esp + 0x24]
mov byte [ebp + 0x80], 1
push ecx
call fcn.004f85b5
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0xa4], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x28]
mov dword [ebp + 0xa8], edx
push eax
mov byte [ebp + 0x90], 1
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x91], 1
call fcn.004f8557
mov dword [ebp + 0xb0], eax
mov dword [ebp + 0xb4], edx
lea ecx, [esp + 0x2c]
lea edx, [ebp + 0x110]
push ecx
push edx
mov byte [ebp + 0x92], 1
call fcn.00405800
mov eax, dword [ebp + 0xb0]
mov edx, dword [ebp + 0xb0]
add esp, 0x10
mov esi, dword [ebp + 0xb4]
inc eax
shl eax, 5
mov ecx, eax
shr ecx, 5
add edx, 1
adc esi, ebx
cmp ecx, edx
jne 0x4055a4
cmp ebx, esi
jne 0x4055a4
push eax
call fcn.004de8c0
add esp, 4
cmp eax, ebx
mov dword [ebp + 0x128], eax
je 0x4055a4
mov ecx, dword [esp + 0x24]
xor edx, edx
xor esi, esi
xor edi, edi
cmp ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
je 0x40551c
lea eax, [ecx + ecx*2]
shl eax, 3
mov edx, dword [esp + 0x2c]
sub eax, 0x18
add edx, eax
dec ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
mov esi, dword [edx + 0x10]
mov edi, dword [edx + 0x14]
add esi, 0xc
mov dword [esp + 0x34], ebx
adc edi, ebx
cmp dword [edx + 4], ebx
jbe 0x405508
mov eax, dword [esp + 0x10]
shl eax, 5
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 8]
xor ebx, ebx
add ecx, eax
mov eax, dword [ecx + 8]
neg eax
and eax, 3
add eax, dword [ecx + 8]
adc ebx, dword [ecx + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov ebx, dword [ecx]
or ebx, dword [ecx + 4]
je 0x40549c
mov ebx, dword [ebp + 0xb4]
xor eax, eax
cmp eax, ebx
ja 0x405556
jb 0x405451
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0xb0]
cmp eax, ebx
jae 0x405556
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x128]
add eax, ebx
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
add ebx, 0x20
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bx, word [edx]
mov dword [eax], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + 0x10], ebx
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0x18], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x1c], ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x3c]
adc edi, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
adc ebx, ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x134]
cmp ebx, ecx
ja 0x4054df
jb 0x4054d3
mov ebx, dword [ebp + 0x130]
cmp ebx, eax
jae 0x4054df
mov dword [ebp + 0x130], eax
mov dword [ebp + 0x134], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov ebx, dword [edx + 4]
inc eax
add ecx, 0x10
cmp eax, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
jb 0x405409
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp ecx, ebx
jne 0x4053ce
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0xa0]
cmp eax, esi
jne 0x405530
mov ecx, dword [ebp + 0xa4]
cmp ecx, edi
je 0x40557c
lea edx, [esp + 0x24]
push 0x727780
push edx
call fcn.004f84e5
mov eax, dword [esp + 0x70]
push eax
call fcn.004de8db
add esp, 0xc
mov eax, 0x80004005
jmp 0x40563f
lea ecx, [esp + 0x24]
push 0x727780
push ecx
call fcn.004f84e5
mov edx, dword [esp + 0x70]
push edx
call fcn.004de8db
add esp, 0xc
mov eax, 0x80004005
jmp 0x40563f
mov ecx, dword [ebp + 0x128]
mov eax, edx
shl eax, 5
add eax, ecx
inc edx
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x18], esi
mov dword [eax], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x1c], edi
mov dword [ebp + 0x12c], edx
mov esi, dword [esp + 0x14c]
push ebx
call fcn.004058a0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4055da
lea ecx, [esp + 0x24]
push 0x727780
push ecx
call fcn.004f84e5
mov edx, dword [esp + 0x70]
push edx
call fcn.004de8db
add esp, 0xc
mov eax, edi
jmp 0x40563f
cmp esi, ebx
je 0x4055e4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 0x138]
cmp eax, ebx
je 0x4055f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov dword [ebp + 0x138], esi
je 0x405604
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [ebp + 0x13c]
cmp eax, ebx
je 0x405614
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x24]
push 0x727780
mov dword [ebp + 0x13c], esi
push edx
mov byte [ebp + 0x82], 1
call fcn.004f84e5
mov eax, dword [esp + 0x70]
push eax
call fcn.004de8db
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 8