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

Disassembly:
push 0xffffffffffffffff
push 0x4840e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x194]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x170], esi
je 0x51fb7e
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x74]
call fcn.005416ea
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x88]
call fcn.005416ea
mov edx, dword [esp + 0x190]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x28], esi
mov edi, dword [edx - 8]
mov dword [esp + 0x60], esi
cmp edi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jne 0x51fbb9
mov esi, dword [esp + 0x178]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x520cdb
mov eax, dword [esp + 0x184]
mov ebx, dword [esp + 0x180]
lea esi, [ebp + 0xa4]
mov ecx, 0xf
lea edi, [esp + 0xb4]
mov dword [esp + 0x4c], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x48b884
lea ecx, [esp + 0xb4]
mov byte [esp + 0x170], 1
push ecx
call dword [fcn.0048a0f8]
push eax
lea ecx, [esp + 0x38]
call fcn.0054150a
mov esi, dword [esp + 0x17c]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x130]
push ecx
push edx
mov dword [esp + 0x60], eax
call dword [0x48a064]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x130]
mov dword [esp + 0x68], ecx
push 0x4a7dd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], eax
call fcn.00541348
push 0x4a7dd4
lea ecx, [esp + 0x58]
mov byte [esp + 0x174], 2
call fcn.00541348
push 0x4a7dd4
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 3
call fcn.00541348
mov ecx, dword [esp + 0x194]
xor eax, eax
cmp ecx, eax
mov byte [esp + 0x170], 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
je 0x51fcab
mov eax, dword [esp + 0x64]
jmp 0x51fcb3
mov edx, dword [ebp + 0x8c]
mov eax, dword [edx]
lea ecx, [esp + 0x80]
mov dword [esp + 0x20], eax
call fcn.005416f0
mov eax, dword [esp + 0x88]
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x178], 5
call fcn.00541708
mov ecx, dword [esp + 0x190]
mov dword [esp + 0x14], 0
mov dword [esp + 0x50], 1
mov eax, dword [ecx - 8]
test eax, eax
jl 0x520d0f
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jge 0x52061f
lea edx, [esp + 0x14]
lea eax, [esp + 0x190]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x28], 0
call fcn.00520d70
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x174], 6
call fcn.005414b6
lea ecx, [esp + 0x9c]
mov byte [esp + 0x170], 5
call fcn.00541342
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x520544
lea edx, [esp + 0x14]
lea eax, [esp + 0x190]
push edx
lea ecx, [esp + 0xac]
push eax
push ecx
mov ecx, ebp
call fcn.00520f10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 7
call fcn.005414b6
lea ecx, [esp + 0xa8]
mov byte [esp + 0x170], 5
call fcn.00541342
mov eax, dword [esp + 0x10]
xor edx, edx
mov cl, byte [eax]
cmp cl, 0x2f
sete dl
mov ecx, edx
test ecx, ecx
mov dword [esp + 0x3c], ecx
je 0x51fdfe
mov eax, dword [eax - 8]
lea ecx, [esp + 0x10]
dec eax
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.005414bc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 8
call fcn.005414b6
lea ecx, [esp + 0x78]
mov byte [esp + 0x170], 5
call fcn.00541342
mov eax, dword [esp + 0x10]
mov edi, dword [fcn.0048ace0]
push 0x4a5f0c
push eax
call edi
add esp, 8
test eax, eax
jne 0x51fe20
mov dword [esp + 0x1c], 1
jmp 0x5204db
mov ecx, dword [esp + 0x10]
push 0x4a5f08
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51fe40
mov dword [esp + 0x1c], 2
jmp 0x5204db
mov edx, dword [esp + 0x10]
push 0x4a5f04
push edx
call edi
add esp, 8
test eax, eax
jne 0x51fe60
mov dword [esp + 0x1c], 4
jmp 0x5204db
mov eax, dword [esp + 0x10]
push 0x4a5f00
push eax
call edi
add esp, 8
test eax, eax
jne 0x51fe80
mov dword [esp + 0x1c], 3
jmp 0x5204db
mov ecx, dword [esp + 0x10]
push 0x4a5efc
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51febc
mov dword [esp + 0x1c], 9
push 1
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
call fcn.00521330
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x5204df
mov ecx, dword [esp + 0x10]
push 0x4a5ef8
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51fef8
lea edx, [esp + 0x14]
push 1
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0xa
call fcn.00521330
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x5204df
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0xa
jne 0x51ff18
mov edi, 1
mov dword [esp + 0x1c], 9
mov dword [esp + 0x18], edi
jmp 0x5204df
cmp al, 9
jne 0x51ff32
mov edi, 1
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], edi
jmp 0x5204df
push 0x4a5ef4
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51ff55
mov ecx, dword [ebp + 0x124]
mov dword [esp + 0x1c], 5
push ecx
jmp 0x51fe9d
mov ecx, dword [esp + 0x10]
push 0x4a5ef0
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51ff77
mov dword [esp + 0x1c], 5
push 0x11
jmp 0x51fe9d
mov ecx, dword [esp + 0x10]
push 0x4a5eec
push ecx
call edi
add esp, 8
test eax, eax
jne 0x51ff9b
mov edx, dword [ebp + 0x128]
mov dword [esp + 0x1c], 7
push edx
jmp 0x51ffb8
mov edx, dword [esp + 0x10]
push 0x4a5ee8
push edx
call edi
add esp, 8
test eax, eax
jne 0x51ffd7
mov dword [esp + 0x1c], 8
push 0x12
lea eax, [esp + 0x18]
lea ecx, [esp + 0x194]
push eax
push ecx
mov ecx, ebp
call fcn.00521330
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x5204df
mov edx, dword [esp + 0x10]
push 0x4a5ee4
push edx
call edi
add esp, 8
test eax, eax
je 0x5204d3
mov eax, dword [esp + 0x10]
push 0x4a5edc
push eax
call edi
add esp, 8
test eax, eax
je 0x5204d3
mov ecx, dword [esp + 0x10]
push 0x4a5ed4
push ecx
call edi
add esp, 8
test eax, eax
jne 0x520034
mov eax, dword [esp + 0x194]
test eax, eax
jne 0x5204db
mov dword [esp + 0x60], 1
jmp 0x5204db
mov edx, dword [esp + 0x10]
push 0x4a5ecc
push edx
call edi
add esp, 8
test eax, eax
jne 0x520063
mov eax, dword [esp + 0x194]
test eax, eax
jne 0x5204db
mov dword [esp + 0x60], 2
jmp 0x5204db
mov eax, dword [esp + 0x10]
push 0x4a5ec8
push eax
call edi
add esp, 8
test eax, eax
jne 0x52013c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0x98]
push edx
push eax
mov ecx, ebp
call fcn.005211d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 9
call fcn.005414b6
lea ecx, [esp + 0x94]
mov byte [esp + 0x170], 5
call fcn.00541342
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5200db
push 0
push 0
push eax
call dword [fcn.0048acec]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x5200e3
mov dword [esp + 0x18], 0x64
lea ecx, [esp + 0x74]
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.005414bc
mov eax, dword [eax]
mov edi, 0x4a5ec4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x52011e
test cl, cl
je 0x52011a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x52011e
add eax, 2
add edi, 2
test cl, cl
jne 0x5200fa
xor eax, eax
jmp 0x520123
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
lea ecx, [esp + 0x74]
add eax, 0xc
mov dword [esp + 0x1c], eax
call fcn.00541342
jmp 0x5204db
mov eax, dword [esp + 0x10]
push 0x4a5ec0
push eax
call edi
add esp, 8
test eax, eax
jne 0x52025e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0xa8]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0xd
call fcn.005211d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 0xa
call fcn.005414b6
lea ecx, [esp + 0xa4]
mov byte [esp + 0x170], 5
call fcn.00541342
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], 2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
mov ecx, ebp
call fcn.00521090
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xb
call fcn.005414b6
lea ecx, [esp + 0x7c]
mov byte [esp + 0x170], 5
call fcn.00541342
mov ecx, dword [esp + 0x10]
push 0x4a5ebc
push ecx
call edi
add esp, 8
test eax, eax
jne 0x52021e
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x2c], eax
jmp 0x52024a
mov ecx, dword [esp + 0x10]
push 0x4a5eb8
push ecx
call edi
add esp, 8
test eax, eax
jne 0x52024a
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x5201b1
jmp 0x5204db
mov ecx, dword [esp + 0x10]
push 0x4a5eb0
push ecx
call edi
add esp, 8
test eax, eax
jne 0x52027f
mov dword [esp + 0x1c], 0xe
push eax
jmp 0x51fe9d
mov ecx, dword [esp + 0x10]
push 0x4a5ea8
push ecx
call edi
add esp, 8
test eax, eax
jne 0x520385
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0x11
call fcn.00521330
mov edi, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], 2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
mov ecx, ebp
call fcn.00521090
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xc
call fcn.005414b6
lea ecx, [esp + 0xa0]
mov byte [esp + 0x170], 5
call fcn.00541342
mov ecx, dword [esp + 0x10]
push 0x4a5ebc
push ecx
call dword [fcn.0048ace0]
add esp, 8
test eax, eax
jne 0x520341
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x2c], eax
jmp 0x520371
mov ecx, dword [esp + 0x10]
push 0x4a5eb8
push ecx
call dword [fcn.0048ace0]
add esp, 8
test eax, eax
jne 0x520371
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x5202cd
jmp 0x5204df
mov ecx, dword [esp + 0x10]
push 0x4a5ea4
push ecx
call edi
add esp, 8
test eax, eax
jne 0x5204c9
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0xf
call fcn.00521330
mov edi, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00541ae6
mov dword [esp + 0x40], 3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x190]
push ecx
lea eax, [esp + 0x9c]
push edx
push eax
mov ecx, ebp
call fcn.00521090
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xd
call fcn.005414b6
lea ecx, [esp + 0x98]
mov byte [esp + 0x170], 5
call fcn.00541342
mov ecx, dword [esp + 0x10]
push 0x4a5e9c
push ecx
call dword [fcn.0048ace0]
add esp, 8
test eax, eax
jne 0x520456
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.005414b6
lea eax, [esp + 0x14]
push 0xff00ff
lea ecx, [esp + 0x194]
push eax
push ecx
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x5c], eax
jmp 0x5204b8
mov edx, dword [esp + 0x10]
push 0x4a5ebc
push edx
call dword [fcn.0048ace0]
add esp, 8
test eax, eax
jne 0x520488
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x194]
push eax
push ecx
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x2c], eax
jmp 0x5204b8
mov edx, dword [esp + 0x10]
push 0x4a5eb8
push edx
call dword [fcn.0048ace0]
add esp, 8
test eax, eax
jne 0x5204b8
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x194]
push eax
push ecx
mov ecx, ebp
call fcn.00521330
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x5203d0
jmp 0x5204df
mov dword [esp + 0x1c], 0
jmp 0x5204db
mov dword [esp + 0x60], 0
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x190]
push edx
push eax
mov ecx, ebp
call fcn.00520ed0
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xd
jl 0x52065e
cmp ecx, 0xf
jle 0x52050e
cmp ecx, 0x11
jne 0x52065e
mov eax, dword [esp + 0x50]
test eax, eax
je 0x52065e
mov eax, dword [esp + 0x60]
dec eax
je 0x520636
dec eax
jne 0x520656
mov eax, dword [ebp + 0x78]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x188]
mov eax, dword [eax + edx*4]
sub ebx, eax
jmp 0x520656
mov eax, dword [esp + 0x50]
test eax, eax
je 0x52058b
mov eax, dword [esp + 0x60]
dec eax
je 0x52056b
dec eax
jne 0x52058b
mov edx, dword [ebp + 0x78]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x188]
mov eax, dword [edx + eax*4]
sub ebx, eax
jmp 0x52058b
mov edx, dword [ebp + 0x78]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x188]
mov eax, dword [edx + eax*4]
sub ebx, eax
mov eax, dword [esp + 0x180]
sub ebx, eax
shr ebx, 1
add ebx, eax
mov eax, dword [ecx - 8]
lea edx, [esp + 0xac]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
call dword [0x48a068]
mov eax, dword [esp + 0x194]
test eax, eax
je 0x5205c2
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jg 0x5205f1
mov dword [esp + 0x20], eax
jmp 0x5205f1
mov ecx, dword [ebp + 0x8c]
mov edx, dword [esp + 0x28]
mov edi, dword [esi]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx - 8]
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x6c]
sub eax, ecx
mov ecx, esi
add eax, edx
push eax
push ebx
call dword [edi + 0x64]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0xac]
push 0x4a7dd4
lea ecx, [esp + 0x58]
add ebx, edx
call fcn.005414fe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], eax
jmp 0x52065e
mov dword [esp + 0x1c], 9
mov edi, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
jmp 0x52065e
mov eax, dword [ebp + 0x78]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x188]
mov eax, dword [eax + edx*4]
sub ebx, eax
mov eax, dword [esp + 0x180]
sub ebx, eax
shr ebx, 1
add ebx, eax
mov dword [esp + 0x50], 0
lea eax, [ecx - 1]
cmp eax, 0x10
ja 0x520bd5
jmp dword [eax*4 + 0x43711c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x190]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [edx - 8]
cmp ecx, eax
jle 0x51fd07
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x184]
mov ecx, dword [esp + 0x58]
sub eax, ebx
push ecx
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x34]
call fcn.00541516
mov ecx, dword [esp + 0x88]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x520c67
mov edx, dword [esp + 0x84]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x520c57
mov edx, dword [ebp + 0x78]
push 0x64
push edi
push ecx
mov esi, dword [edx + eax*4]
call dword [0x48a178]
mov ecx, dword [ebp + 0x78]
mov edx, dword [esp + 0x14]
add eax, esi
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x520c29
mov esi, dword [esp + 0x178]
lea ecx, [esp + 0x80]
mov byte [esp + 0x170], 4
mov dword [esi], edi
mov dword [esi + 4], ebx
call fcn.005416e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 3
call fcn.00541342
lea ecx, [esp + 0x54]
mov byte [esp + 0x170], 2
call fcn.00541342
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 1
call fcn.00541342
mov dword [esp + 0x34], 0x48b594
lea ecx, [esp + 0x34]
mov byte [esp + 0x170], 0xe
call fcn.00541516
mov dword [esp + 0x34], 0x48b5a8
lea ecx, [esp + 0x190]
mov dword [esp + 0x170], 0xffffffff
call fcn.00541342
mov ecx, dword [esp + 0x168]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 0x20
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
jmp 0x520bf8