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

Disassembly:
push 0xffffffffffffffff
push 0x604c51
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov edx, ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x22c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 0x124]
mov esi, dword [eax]
cmp esi, eax
je 0x5118c8
lea ebx, [edx + 0x24]
mov dword [esp + 0x24], ebx
jmp 0x5110e0
lea ebp, [esi + 0x10]
mov ecx, ebx
push ebp
call fcn.005081c0
mov ebx, dword [ebx]
mov edi, eax
cmp edi, ebx
je 0x511163
lea edx, [edi + 0x10]
test edx, edx
je 0x5110ff
add edx, 4
jmp 0x511101
xor edx, edx
test ebp, ebp
je 0x51110a
lea ecx, [ebp + 4]
jmp 0x51110c
xor ecx, ecx
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
jb 0x51111b
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
mov ebp, dword [ecx + 0x10]
jb 0x511126
mov ecx, dword [ecx]
cmp ebp, dword [esp + 0x1c]
cmovb eax, ebp
push eax
push edx
push ecx
call fcn.004f3050
add esp, 0xc
test eax, eax
jne 0x511152
mov ecx, dword [esp + 0x1c]
cmp ebp, ecx
jae 0x511149
or eax, 0xffffffff
jmp 0x511150
xor eax, eax
cmp ebp, ecx
setne al
test eax, eax
sets al
test al, al
jne 0x511163
mov dword [esp + 0x3c], edi
lea edi, [esp + 0x3c]
jmp 0x51116b
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov edi, dword [edi]
cmp edi, dword [ebx]
jne 0x511183
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x5115c2
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x8c]
imul ebx, dword [edi + 0x2c], 0x18c
add ebp, 0x18
push 0x18c
push 0
push eax
mov dword [esp + 0x38], ebp
add ebx, dword [ebp]
call fcn.005e0f30
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.0050d2c0
movzx eax, byte [0x637930]
lea ecx, [esp + 0x1b0]
push eax
lea eax, [esi + 0x10]
mov dword [esp + 0x228], 0
push eax
push 0
lea eax, [esp + 0x54]
mov byte [esp + 0x23], 0
push eax
call fcn.004f3a60
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
and eax, 5
mov dword [esp + 0x90], eax
mov ecx, dword [edx + 4]
and ecx, 5
cmp eax, ecx
jae 0x511211
mov dword [esp + 0x90], ecx
mov byte [esp + 0x17], 1
mov eax, dword [edx + 8]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jbe 0x51124e
mov dword [esp + 0x94], eax
lea ecx, [esp + 0x1dc]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x9c], eax
lea eax, [edx + 0x150]
cmp ecx, eax
je 0x511247
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
mov byte [esp + 0x17], 1
jmp 0x51127a
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x1dc]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x9c], eax
lea eax, [ebx + 0x150]
cmp ecx, eax
je 0x51127a
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 0xc]
cmp eax, ecx
jbe 0x511300
mov dword [esp + 0x98], eax
lea ecx, [esp + 0x1e4]
mov eax, dword [edx + 0x14]
mov dword [esp + 0xa0], eax
lea eax, [edx + 0x158]
cmp ecx, eax
je 0x5112b8
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x1b8]
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0xac], eax
lea eax, [edx + 0x12c]
cmp eax, ecx
je 0x5112f9
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5112e9
mov eax, dword [eax + 4]
jmp 0x5112eb
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x1c0]
call fcn.004f3510
mov byte [esp + 0x17], 1
jmp 0x51136d
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x1e4]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xa0], eax
lea eax, [ebx + 0x158]
cmp ecx, eax
je 0x51132c
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
mov eax, dword [ebx + 0x1c]
lea ecx, [esp + 0x1b8]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xac], eax
lea eax, [ebx + 0x12c]
cmp eax, ecx
je 0x51136d
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51135d
mov eax, dword [eax + 4]
jmp 0x51135f
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x1c0]
call fcn.004f3510
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x1ec]
mov dword [esp + 0xa4], eax
lea eax, [ebx + 0x160]
cmp ecx, eax
je 0x511392
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
cmp dword [esp + 0x1f0], 0
jne 0x5113ce
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1ec]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xa4], eax
lea eax, [ebx + 0x160]
cmp ecx, eax
je 0x51145e
mov eax, dword [eax]
push eax
push dword [eax]
call fcn.0050cd90
jmp 0x51145e
mov ebp, dword [esp + 0x1ec]
mov ecx, dword [ebp]
cmp ecx, ebp
je 0x51144b
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x160]
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
mov eax, dword [edx]
cmp eax, edx
je 0x511423
mov ebx, dword [ecx + 8]
mov edx, dword [esp + 0x18]
lea ecx, [ecx]
cmp ebx, dword [eax + 8]
jne 0x511419
mov edx, dword [ecx + 0xc]
cmp edx, dword [eax + 0xc]
jne 0x511415
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x10]
je 0x511441
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, dword [edx + 0x160]
jne 0x511400
lea ecx, [esp + 0x8c]
mov dword [esp + 0x224], 0xffffffff
call fcn.00509da0
xor al, al
jmp 0x5118ca
mov ecx, dword [ecx]
mov edx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x5113f0
cmp byte [esp + 0x17], 0
je 0x5115a3
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0x168]
lea ecx, [esp + 0x1f4]
cmp eax, ecx
je 0x51148b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51147b
mov eax, dword [eax + 4]
jmp 0x51147d
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x1fc]
call fcn.004f3510
imul edx, dword [edi + 0x2c], 0x18c
add edx, dword [ebp]
mov eax, dword [edx + 0x128]
cmp eax, dword [esp + 0x1b4]
jne 0x5114ed
mov ecx, dword [esp + 0x1b0]
mov eax, dword [edx + 0x124]
push dword [ecx]
push eax
push dword [eax]
call fcn.0050bec0
add esp, 0xc
test al, al
je 0x5114ed
imul ecx, dword [edi + 0x2c], 0x18c
add ecx, dword [ebp]
call fcn.0050f0d0
imul ecx, dword [edi + 0x2c], 0x18c
lea eax, [esp + 0x8c]
push eax
add ecx, dword [ebp]
call fcn.0050e000
jmp 0x5115a3
lea eax, [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.00513c20
mov ecx, dword [ebp + 4]
mov eax, 0xa57eb503
sub ecx, dword [ebp]
imul ebx, dword [edi + 0x2c], 0x18c
imul ecx
add ebx, dword [ebp]
lea ebp, [esi + 0x10]
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
lea ecx, [ebx + 0x124]
dec eax
add eax, edx
push ebp
mov dword [edi + 0x2c], eax
call fcn.005081c0
mov edi, eax
cmp edi, dword [ebx + 0x124]
je 0x51157a
lea eax, [edi + 0x10]
test eax, eax
je 0x511548
add eax, 4
jmp 0x51154a
xor eax, eax
test ebp, ebp
je 0x511553
lea ecx, [ebp + 4]
jmp 0x511555
xor ecx, ecx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x511560
mov eax, dword [eax]
push edx
push eax
push dword [ecx + 0x10]
push 0
call fcn.004f2fe0
test eax, eax
js 0x51157a
mov dword [esp + 0x34], edi
lea eax, [esp + 0x34]
jmp 0x511588
mov eax, dword [ebx + 0x124]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x124]
je 0x5115a3
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ebx + 0x124]
call fcn.004ee7f0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x224], 0xffffffff
call fcn.00509da0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp byte [esi + 0xd], 0
jne 0x511607
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x5115ec
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x511607
jmp 0x5115e0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x5115e0
jmp 0x511607
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x511605
cmp esi, dword [eax + 8]
jne 0x511605
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5115f5
mov esi, eax
mov edi, dword [esp + 0x18]
cmp esi, dword [edi + 0x124]
jne 0x5110e0
test ecx, ecx
jle 0x5118c8
mov eax, dword [esp + 0x28]
mov byte [esp + 0x17], 0
mov ecx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x18]
mov eax, 0xa57eb503
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x124]
mov esi, dword [eax]
cmp esi, eax
je 0x5118c8
mov edi, dword [esp + 0x24]
lea ebp, [esi + 0x10]
push ebp
mov ecx, edi
call fcn.005081c0
mov ecx, dword [edi]
cmp eax, ecx
je 0x511732
lea ebx, [eax + 0x10]
test ebx, ebx
je 0x51167a
add ebx, 4
jmp 0x51167c
xor ebx, ebx
test ebp, ebp
je 0x511685
lea edi, [ebp + 4]
jmp 0x511687
xor edi, edi
cmp dword [ebx + 0x14], 0x10
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebp
jb 0x511696
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
mov dword [esp + 0x20], edx
jb 0x5116a5
mov edi, dword [edi]
cmp edx, dword [esp + 0x1c]
cmovb ebp, edx
test ebp, ebp
je 0x511709
sub ebp, 4
jb 0x5116c6
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x5116cb
add edi, 4
add ebx, 4
sub ebp, 4
jae 0x5116b5
cmp ebp, 0xfffffffc
je 0x5116ff
mov dl, byte [edi]
cmp dl, byte [ebx]
jne 0x5116f8
cmp ebp, 0xfffffffd
je 0x5116ff
mov dl, byte [edi + 1]
cmp dl, byte [ebx + 1]
jne 0x5116f8
cmp ebp, 0xfffffffe
je 0x5116ff
mov dl, byte [edi + 2]
cmp dl, byte [ebx + 2]
jne 0x5116f8
cmp ebp, 0xffffffff
je 0x5116ff
mov dl, byte [edi + 3]
cmp dl, byte [ebx + 3]
je 0x5116ff
sbb edx, edx
or edx, 1
jmp 0x511701
xor edx, edx
test edx, edx
jne 0x511721
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, ebx
jae 0x511716
or edx, 0xffffffff
jmp 0x51171f
xor edx, edx
cmp dword [esp + 0x20], ebx
setne dl
test edx, edx
sets dl
test dl, dl
jne 0x511732
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
jmp 0x51173a
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax]
cmp eax, dword [ebx]
jne 0x51185f
lea eax, [esi + 0x10]
test eax, eax
je 0x511754
add eax, 4
jmp 0x511756
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
call fcn.004ed0d0
mov dword [esp + 0x70], 0x4ca328
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x224], 1
test ecx, ecx
je 0x5117bc
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
push ecx
cmovae eax, dword [esp + 0x78]
push eax
call dword [0x62930c]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0050ce80
add esp, 0xc
push eax
mov ecx, ebx
mov byte [esp + 0x228], 2
call fcn.0050bba0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push 0
lea eax, [esp + 0x4c]
push eax
call fcn.0050c6d0
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x50], 0x4ca328
jb 0x511811
push dword [esp + 0x54]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x88], 0x10
mov bl, byte [esp + 0x44]
mov byte [esp + 0x17], bl
mov dword [esp + 0x224], 0xffffffff
mov dword [esp + 0x70], 0x4ca328
jb 0x511842
push dword [esp + 0x74]
call fcn.005df995
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jmp 0x511863
mov bl, byte [esp + 0x17]
cmp byte [esi + 0xd], 0
jne 0x5118a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x51188c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x5118a7
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x511880
jmp 0x5118a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5118a5
cmp esi, dword [eax + 8]
jne 0x5118a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x511895
mov esi, eax
mov edi, dword [esp + 0x18]
cmp esi, dword [edi + 0x124]
jne 0x511655
test bl, bl
je 0x5118c8
mov ecx, dword [esp + 0x28]
push edi
lea ecx, [ecx + 0x18]
call fcn.00513c20
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.005e0482
add esp, 0x214
ret 4