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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x51d7b3
sub esp, 0x9c
lea eax, [0x573060]
mov dword [esp], eax
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xac]
lea ebx, [ecx + edx*2 + 1]
mov dword [esp + 0x30], ebx
mov dword [esp + 8], ebx
call fcn.0043f260
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
je 0x51cff0
mov dword [esp + 0x98], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 8], ecx
call fcn.004521a0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0x30]
xor esi, esi
xor edi, edi
xor esi, esi
mov dword [esp + 0x24], esi
xor esi, esi
jmp 0x51d022
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], edi
cmp edx, esi
jle 0x51d0f9
movzx ecx, byte [ecx + esi]
cmp ecx, 0x80
jge 0x51d041
inc esi
jmp 0x51d085
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.0044c8b0
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
cmp ecx, 0x80
jge 0x51d0ef
lea edx, [ebp + 1]
cmp ebx, edx
jae 0x51d0d9
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], esi
lea ecx, [0x573060]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0043f320
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x50]
mov byte [eax + ebp], cl
inc edi
mov ecx, dword [esp + 0x24]
mov ebp, edx
mov edx, dword [esp + 0xac]
jmp 0x51d017
mov ecx, dword [esp + 0x24]
inc ecx
jmp 0x51d017
test edi, edi
jle 0x51d14d
lea esi, [ebp + 1]
cmp ebx, esi
jae 0x51d147
lea ecx, [0x573060]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.0043f320
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
mov byte [eax + ebp], 0x2d
jmp 0x51d14f
mov esi, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, 0x48
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x88]
jmp 0x51d19e
inc ecx
inc ebx
mov ebp, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ecx
mov eax, esi
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0x2c]
test ebp, ebp
je 0x51d28a
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, 0x7fffffff
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x80]
jmp 0x51d2e9
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
sub ebx, ecx
lea ecx, [edi + 1]
mov dword [esp + 0x48], ecx
mov eax, ebx
mul ecx
mov ebp, 0x7fffffff
mov esi, dword [esp + 0x44]
sub ebp, esi
cmp eax, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
sar esi, 0x1f
mov edi, 0x7fffffff
mov ebp, dword [esp + 0x44]
sub edi, ebp
mov edi, 0
sbb edi, esi
mov esi, ebx
sar ebx, 0x1f
sar ecx, 0x1f
imul esi, ecx
mov ecx, dword [esp + 0x48]
imul ecx, ebx
add ecx, edx
add ecx, esi
cmp edi, ecx
setl cl
sete dl
movzx ebx, byte [esp + 0x23]
and edx, ebx
or ecx, edx
test cl, cl
jne 0x51d356
lea ecx, [ebp + eax]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
jmp 0x51d3e7
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00441d50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0x9c
ret
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jle 0x51d1df
movzx ebp, byte [ecx + ebx]
cmp ebp, 0x80
jge 0x51d304
inc ebx
jmp 0x51d339
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0044c8b0
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
cmp esi, ebp
jle 0x51d34d
mov edi, dword [esp + 0x34]
cmp edi, ebp
jg 0x51d2d1
mov esi, ebp
jmp 0x51d2d1
mov edi, dword [esp + 0x34]
jmp 0x51d2d1
lea eax, [0x57f6c0]
mov dword [esp], eax
call fcn.0040a390
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xac]
mov dword [edi + 4], eax
mov eax, dword [0x7e73a0]
test eax, eax
jne 0x51d387
mov eax, dword [esp + 0xa8]
mov dword [edi], eax
jmp 0x51d393
mov eax, dword [esp + 0xa8]
call fcn.004518b0
mov dword [edi + 0xc], 2
lea eax, [0x58c5be]
mov dword [edi + 8], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [0x71f030]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edi
add esp, 0x9c
ret
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x4c], edx
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
jle 0x51d17b
mov dword [esp + 0x60], edi
mov dword [esp + 0x44], ecx
movzx edx, byte [eax + ebp]
cmp edx, 0x80
jge 0x51d40e
inc ebp
jmp 0x51d44e
mov dword [esp + 0x94], esi
mov dword [esp], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0044c8b0
mov edx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x60]
cmp edx, ebx
jge 0x51d464
inc ecx
test ecx, ecx
jl 0x51d5bd
mov edx, dword [esp + 0x4c]
jmp 0x51d3d4
jle 0x51d46f
mov edx, dword [esp + 0x4c]
jmp 0x51d3d4
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
mov eax, 0x24
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
jmp 0x51d67a
cmp ecx, 0x1a
jae 0x51d497
add ecx, 0x61
jmp 0x51d4a6
lea edx, [ecx - 0x1a]
cmp edx, 0xa
jae 0x51d77d
add ecx, 0x16
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jae 0x51d4fc
mov byte [esp + 0x21], cl
lea eax, [0x573060]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043f320
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x60]
mov ebp, ecx
movzx ecx, byte [esp + 0x21]
mov dword [esp + 0x2c], ebx
mov byte [esi + edx], cl
mov ecx, dword [esp + 0x50]
cmp edi, ecx
jne 0x51d52d
mov eax, 0x5d9f7391
mov ecx, dword [esp + 0x44]
imul ecx
sar edx, 8
sar ecx, 0x1f
sub edx, ecx
mov eax, dword [esp + 0xa8]
mov ecx, edx
mov edx, dword [esp + 0x50]
jmp 0x51d53e
mov edx, ecx
mov ecx, dword [esp + 0x44]
shr ecx, 0x1f
mov ebx, dword [esp + 0x44]
add ecx, ebx
sar ecx, 1
cmp edi, 0xffffffff
je 0x51d778
lea ebx, [edi + 1]
mov edi, eax
mov eax, ecx
cmp ebx, 0xffffffff
je 0x51d558
cdq
idiv ebx
jmp 0x51d55a
neg eax
add ecx, eax
xor eax, eax
jmp 0x51d766
lea edx, [ecx + ecx*8]
cmp ecx, 0xffffffda
je 0x51d773
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x58]
shl edx, 2
mov dword [esp + 0x58], edx
lea edx, [ecx + 0x26]
mov ecx, eax
mov eax, dword [esp + 0x58]
mov edi, edx
cmp edi, 0xffffffff
je 0x51d59c
cdq
idiv edi
jmp 0x51d59e
neg eax
lea edx, [eax + ecx]
mov eax, dword [esp + 0xa8]
xor ecx, ecx
mov dword [esp + 0x30], ebp
mov edi, ebx
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x5c]
jmp 0x51d3d4
lea eax, [0x57f6c0]
mov dword [esp], eax
call fcn.0040a390
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xac]
mov dword [edi + 4], eax
mov eax, dword [0x7e73a0]
test eax, eax
jne 0x51d5ee
mov eax, dword [esp + 0xa8]
mov dword [edi], eax
jmp 0x51d5fa
mov eax, dword [esp + 0xa8]
call fcn.004518b0
mov dword [edi + 0xc], 2
lea eax, [0x58c5be]
mov dword [edi + 8], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
lea eax, [0x71f030]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edi
add esp, 0x9c
ret
mov byte [esi + edx], cl
lea edx, [ebp + 0x24]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x58]
cmp ecx, 0xffffffff
je 0x51d653
cdq
idiv ecx
jmp 0x51d655
neg eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x5c]
mov ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
sub ebx, edx
mov ebp, dword [esp + 0x3c]
cmp ebp, edx
jg 0x51d68f
mov ebx, 1
jmp 0x51d69f
lea edi, [edx + 0x1a]
cmp ebp, edi
jl 0x51d69b
mov ebx, 0x1a
mov edi, dword [esp + 0x60]
cmp ecx, ebx
jl 0x51d48d
sub ecx, ebx
lea edi, [ebx - 0x24]
xchg edi, ebx
neg ebx
xchg edi, ebx
test edi, edi
je 0x51d7ad
mov eax, ecx
cmp edi, 0xffffffff
je 0x51d6c6
cdq
idiv edi
jmp 0x51d6c8
xor edx, edx
mov eax, ecx
lea ecx, [edx + ebx]
cmp ecx, 0x1a
jae 0x51d6d8
lea ecx, [edx + ebx + 0x61]
jmp 0x51d6e9
lea ecx, [edx + ebx - 0x1a]
cmp ecx, 0xa
jae 0x51d795
lea ecx, [edx + ebx + 0x16]
mov dword [esp + 0x58], edi
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
mov edi, dword [esp + 0x30]
cmp edi, ebx
jae 0x51d63b
mov dword [esp + 0x54], eax
mov byte [esp + 0x22], cl
lea eax, [0x573060]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043f320
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
mov edi, ecx
movzx ecx, byte [esp + 0x22]
jmp 0x51d63b
mov dword [esp + 0x38], eax
mov eax, ecx
mov edx, 0xea0ea0eb
imul edx
add ecx, edx
sar ecx, 5
mov edx, dword [esp + 0x38]
lea eax, [edx + 0x24]
cmp ecx, 0x1c7
jg 0x51d74d
jmp 0x51d563
call fcn.0042d0d0
call fcn.0042d0d0
lea eax, [0x572ea0]
mov dword [esp], eax
lea eax, [0x71ee58]
mov dword [esp + 4], eax
call fcn.0042e000
lea eax, [0x572ea0]
mov dword [esp], eax
lea eax, [0x71ee58]
mov dword [esp + 4], eax
call fcn.0042e000
call fcn.0042d0d0
nop
call fcn.00450480
jmp fcn.0051cf70