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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca521
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x503870]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, dword [0x50a454]
mov eax, dword [ebp + 0x2b8]
push 0x4e0ef4
push 0x100
push 0x40b
push eax
call dword [fcn.004cd5fc]
push 0
call 0x584da3
mov ebx, dword [ebp + 0x83c]
add esp, 4
push 0xffffffffffffffff
push ebx
mov esi, eax
mov dword [esp + 0x50], edx
mov byte [esp + 0x80], 0
mov dword [esp + 0x7c], ebx
call dword [fcn.004cd2fc]
mov dword [esp + 0xb8], 0
call 0x53ee60
mov ecx, dword [0x50a730]
push ecx
mov edi, ebp
call fcn.00517550
mov byte [esp + 0x78], 1
mov dword [esp + 0xb8], 0xffffffff
push ebx
call dword [fcn.004cd2cc]
push 0
call 0x584da3
mov edi, dword [esp + 0x4c]
add esp, 4
push 0
sub eax, esi
push 2
sbb edx, edi
push edx
push eax
call 0x588450
add esi, eax
adc edi, edx
mov edx, dword [0x50a730]
mov ebx, dword [edx + 4]
push 0x4dd6c0
mov dword [esp + 0x4c], edi
call 0x55a5a0
push 0x4dd6cc
mov ebx, eax
call 0x55a5a0
mov ecx, eax
call 0x559f10
cdq
sub esi, eax
mov eax, edi
sbb eax, edx
mov dword [0x504f40], esi
mov esi, dword [0x50a730]
mov dword [0x504f44], eax
call fcn.005006e0
call fcn.00524390
mov eax, dword [ebp + 0x2b8]
mov edi, dword [fcn.004cd5fc]
push 0x4e0f10
push 0x100
push 0x40b
push eax
call edi
call 0x5421d0
mov ecx, ebp
call fcn.00524600
mov ecx, dword [ebp + 0x2b8]
push 0x4e0ccc
push 0x100
push 0x40b
push ecx
call edi
mov edx, dword [ebp + 0x2b8]
push 0x4df794
push 0x100
push 0x40b
push edx
call edi
call fcn.00513410
cmp eax, 1
jne 0x51d9c6
mov eax, dword [ebp + 0x2b8]
push 0x4e0f28
push 0x100
push 0x40b
push eax
call edi
call 0x543920
mov ecx, dword [ebp + 0x2b8]
push 0x4df794
push 0x100
push 0x40b
mov esi, eax
push ecx
mov dword [esp + 0x28], esi
call edi
mov ecx, dword [esi + 4]
mov al, byte [ecx + 8]
test al, al
je 0x51d963
cmp al, 7
jne 0x51d98c
push 0x4df438
call 0x55a770
cmp eax, 0x50b128
je 0x51d98c
mov ebx, dword [esi + 4]
push 0x4df438
call 0x55a5a0
mov ecx, eax
call 0x559f10
test eax, eax
jne 0x51d9a0
push 0x4e0f40
push 0
push 2
mov esi, ebp
call fcn.00517740
mov esi, dword [esp + 0x18]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x51d9b7
mov eax, ebx
call 0x559a70
push ebx
call 0x5600be
add esp, 4
push esi
call fcn.0050c610
push esi
call 0x5600be
add esp, 4
call fcn.004f96b0
mov ecx, eax
call fcn.005146d0
test eax, eax
jne 0x51e093
mov edx, dword [ebp + 0x2b8]
push 0x4e0d10
push 0x100
push 0x40b
push edx
call edi
mov ebx, dword [0x50afd4]
mov edi, dword [0x50b03c]
push 0x4dd690
call 0x55a5a0
mov ecx, eax
call 0x55a0b0
mov esi, eax
mov eax, dword [0x50a4a0]
xor ebx, ebx
cmp eax, ebx
jne 0x51da33
push 0x4d5570
push 0x4d5708
call fcn.004e4000
add esp, 8
mov dword [0x50a4a0], eax
push esi
push eax
call 0x53f590
mov esi, eax
add esp, 8
mov dword [esp + 0x58], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0xb8], 1
mov eax, dword [ebp + 0x2b8]
push 0x4df794
push 0x100
push 0x40b
push eax
call dword [fcn.004cd5fc]
mov ecx, dword [esp + 0x4c]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xb8], 2
lea edx, [esp + 0x44]
push edx
push 0x4dc858
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 3
mov ecx, eax
call 0x559f10
cmp eax, 1
sete byte [esp + 0x17]
mov byte [esp + 0xb8], 2
lea eax, [esp + 0x2c]
call 0x559a70
mov byte [esp + 0xb8], 1
lea eax, [esp + 0x44]
call 0x559a70
cmp byte [esp + 0x17], bl
je 0x51e0aa
push 1
call fcn.004f96b0
mov ecx, eax
call fcn.004f8d60
mov ecx, dword [esp + 0x4c]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0xb8], 4
lea edx, [esp + 0x44]
push edx
push 0x4e0d20
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 5
mov ecx, eax
call 0x559f10
mov dword [esp + 0x3c], eax
mov byte [esp + 0xb8], 4
lea eax, [esp + 0x2c]
call 0x559a70
mov byte [esp + 0xb8], 1
lea eax, [esp + 0x44]
call 0x559a70
mov ecx, dword [esp + 0x64]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0xb8], 6
lea edx, [esp + 0x5c]
push edx
push 0x4df648
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 7
mov ecx, eax
call 0x559f10
mov edi, eax
mov byte [esp + 0xb8], 6
lea eax, [esp + 0x2c]
call 0x559a70
mov byte [esp + 0xb8], 1
lea eax, [esp + 0x5c]
call 0x559a70
mov ecx, dword [esp + 0x24]
and ecx, 0xffffff01
or ecx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb8], 8
lea edx, [esp + 0x1c]
push edx
push 0x4e0d28
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call 0x55a860
mov dword [esp + 0x18], eax
mov byte [esp + 0xb8], 9
mov ebx, dword [0x50afd4]
push 0x4df4f0
call 0x55a5a0
mov ecx, eax
call 0x559f10
mov ecx, dword [esp + 0x18]
mov ebx, eax
call 0x559f10
xor ecx, ecx
test ebx, ebx
setg cl
inc ecx
sub ecx, eax
mov ebx, ecx
mov byte [esp + 0xb8], 8
lea eax, [esp + 0x5c]
call 0x559a70
mov byte [esp + 0xb8], 1
lea eax, [esp + 0x1c]
call 0x559a70
push ebx
push edi
push 0x4e0d30
push 0
push 2
push ebp
call fcn.005178a0
add esp, 0x18
cmp dword [esp + 0x3c], 0
jle 0x51ddf7
push 0x4e0d60
mov esi, ebp
call fcn.00515fa0
add esp, 4
push edi
call 0x546960
mov esi, eax
mov dword [esp + 0x70], esi
mov byte [esp + 0xb8], 0xa
mov edx, dword [ebp + 0x2b8]
push 0x4df794
push 0x100
push 0x40b
push edx
call dword [fcn.004cd5fc]
mov eax, dword [esp + 0x24]
and eax, 0xffffff01
xor edi, edi
or eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xb8], 0xb
lea ecx, [esp + 0x1c]
push ecx
push 0x4dc858
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0xc
mov ecx, eax
call 0x559f10
cmp eax, 1
sete byte [esp + 0x17]
mov byte [esp + 0xb8], 0xb
lea eax, [esp + 0x2c]
call 0x559a70
mov byte [esp + 0xb8], 0xa
lea eax, [esp + 0x1c]
call 0x559a70
cmp byte [esp + 0x17], 0
je 0x51dd4b
push 0x4e0d78
push edi
push 2
push ebp
call fcn.005178a0
add esp, 0x10
jmp 0x51ddd7
mov eax, dword [esp + 0x24]
and eax, 0xffffff05
or eax, 5
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x1c], 1
mov byte [esp + 0xb8], 0xd
lea ecx, [esp + 0x1c]
push ecx
push 0x4dc860
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0xe
mov eax, dword [eax]
push eax
call fcn.004e7980
add esp, 4
mov edi, eax
mov byte [esp + 0xb8], 0xd
lea eax, [esp + 0x2c]
call 0x559a70
mov byte [esp + 0xb8], 0xa
lea eax, [esp + 0x1c]
call 0x559a70
push edi
push 0x4e0da4
push 4
push 2
push ebp
call fcn.005178a0
add esp, 0x14
push edi
call 0x5600be
add esp, 4
xor edi, edi
mov byte [esp + 0xb8], 1
cmp esi, edi
je 0x51ddf3
mov eax, esi
call 0x559a70
push esi
call 0x5600be
add esp, 4
mov esi, dword [esp + 0x58]
mov dword [esp + 0x3c], 0
test ebx, ebx
jle 0x51e072
mov dword [esp + 0x40], 1
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x40]
push eax
push 0x4e0dc0
mov esi, ebp
call fcn.00515fa0
mov ecx, dword [esp + 0x44]
add esp, 8
push ecx
call 0x5468e0
mov esi, eax
mov dword [esp + 0x44], esi
mov byte [esp + 0xb8], 0xf
mov edx, dword [ebp + 0x2b8]
push 0x4df794
push 0x100
push 0x40b
push edx
call dword [fcn.004cd5fc]
mov eax, dword [esp + 0x24]
and eax, 0xffffff01
xor edi, edi
or eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xb8], 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0x4dc858
lea edx, [esp + 0xa4]
push edx
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0x11
mov ecx, eax
call 0x559f10
cmp eax, 1
sete bl
mov byte [esp + 0xb8], 0x10
lea eax, [esp + 0x9c]
call 0x559a70
mov byte [esp + 0xb8], 0xf
lea eax, [esp + 0x1c]
call 0x559a70
test bl, bl
je 0x51df64
mov eax, dword [esp + 0x64]
and eax, 0xffffff01
or eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x5c], edi
mov byte [esp + 0xb8], 0x12
lea ecx, [esp + 0x5c]
push ecx
push 0x4db914
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0x13
mov ecx, eax
call 0x559f10
mov dword [esp + 0x3c], eax
mov byte [esp + 0xb8], 0x12
lea eax, [esp + 0x8c]
call 0x559a70
mov byte [esp + 0xb8], 0xf
lea eax, [esp + 0x5c]
call 0x559a70
mov eax, dword [esp + 0x40]
push eax
push 0x4e0dd4
push edi
push 2
push ebp
call fcn.005178a0
add esp, 0x14
jmp 0x51e03f
mov ecx, dword [esp + 0x34]
and ecx, 0xffffff05
or ecx, 5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0x2c], 1
mov byte [esp + 0xb8], 0x14
lea edx, [esp + 0x2c]
push edx
push 0x4dc860
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0x15
mov ebx, dword [eax]
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push 0xfde9
call dword [0x4cd344]
mov edi, eax
test edi, edi
jne 0x51dfc7
mov edi, 0x4daa50
jmp 0x51dfff
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x5600c9
add esp, 4
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
mov dword [esp + 0x88], eax
call dword [0x4cd344]
mov edi, dword [esp + 0x70]
mov byte [esp + 0xb8], 0x14
lea eax, [esp + 0x7c]
call 0x559a70
mov byte [esp + 0xb8], 0xf
lea eax, [esp + 0x2c]
call 0x559a70
push edi
push 0x4e0dfc
push 4
push 2
push ebp
call fcn.005178a0
add esp, 0x14
push edi
call 0x5600be
add esp, 4
xor edi, edi
mov byte [esp + 0xb8], 1
cmp esi, edi
je 0x51e05b
mov eax, esi
call 0x559a70
push esi
call 0x5600be
add esp, 4
mov eax, 1
add dword [esp + 0x40], eax
sub dword [esp + 0x18], eax
jne 0x51de13
mov esi, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0xb8], 0xffffffff
cmp esi, ebx
je 0x51e093
mov eax, esi
call 0x559a70
push esi
call 0x5600be
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
and eax, 0xffffff05
or eax, 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x2c], 1
mov byte [esp + 0xb8], 0x16
lea ecx, [esp + 0x2c]
push ecx
push 0x4dc860
lea edx, [esp + 0x84]
push edx
mov ecx, esi
call 0x55a860
mov byte [esp + 0xb8], 0x17
mov eax, dword [eax]
push eax
call fcn.004e7980
add esp, 4
mov edi, eax
mov byte [esp + 0xb8], 0x16
lea eax, [esp + 0x7c]
call 0x559a70
mov byte [esp + 0xb8], 1
lea eax, [esp + 0x2c]
call 0x559a70
push edi
push 0x4e0e0c
push 4
push 2
push ebp
call fcn.005178a0
add esp, 0x14
push edi
call 0x5600be
add esp, 4
jmp 0x51e074