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

Disassembly:
xor edi, edi
mov eax, dword [esi + 0x60]
add eax, ebx
cmp dword [eax + 0x2d0], edi
je 0x51534d
add eax, 0x44
lea ecx, [esp + 0x28]
push eax
call 0x5e377a
lea edi, [esi + 0x70]
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
mov byte [esp + 0x9c], 1
call 0x5e393b
mov eax, dword [eax]
mov ebp, dword [0x597424]
push eax
call ebp
lea ecx, [esp + 0x24]
call 0x5e370c
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 0
call 0x5e370c
mov edx, dword [esi + 0x60]
lea ecx, [esp + 0x30]
lea eax, [ebx + edx + 0x148]
push eax
call 0x5e377a
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
mov byte [esp + 0x9c], 2
call 0x5e393b
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x2c]
call 0x5e370c
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 0
call 0x5e370c
add byte [ebx - 0x38bfdb94], cl
inc esp
and al, 0x20
add dword [eax], eax
add byte [eax], al
mov edx, dword [esi + 0x60]
mov ecx, dword [ebx + edx + 0x2cc]
lea eax, [ebx + edx]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
cmp ecx, edx
je 0x51536e
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x5153b4
lea edi, [eax + 0x28c]
add eax, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5153a3
test cl, cl
je 0x51539f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5153a3
add eax, 2
add edi, 2
test cl, cl
jne 0x51537f
xor eax, eax
jmp 0x5153a8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5153b4
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5153c4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51540d
mov eax, dword [esp + 0x34]
add eax, 0x60
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
xor eax, eax
sar edi, 7
inc edi
test ebp, ebp
jle 0x5153f3
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], edi
je 0x5153ef
inc eax
add ecx, 4
cmp eax, ebp
jl 0x5153e1
jmp 0x5153f3
cmp eax, ebp
jl 0x51540d
lds edi, [edx + ebx - 0x73]
dec ebp
add dword [edx - 1], ebp
lea ecx, [ebp + 1]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x40]
call fcn.00567340
mov edx, dword [esp + 0x3c]
mov dword [edx + ebp*4], edi
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x64]
inc eax
add ebx, 0x2d4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x51529e
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
jne 0x515469
cmp dword [esp + 0x1c], edi
jne 0x515469
cmp dword [esp + 0x20], edi
jne 0x515469
cmp dword [esp + 0x98], edi
je 0x515450
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0x5999c4
cmp eax, edi
je 0x51581e
jmp 0x515815
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x10], ecx
lea eax, [esi + 0x70]
push 0x5effa0
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x9c], 3
call 0x5e39a1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 4
call 0x5e3845
lea ecx, [esp + 0x34]
mov byte [esp + 0x90], 3
call 0x5e370c
mov eax, dword [esi + 0x288]
push edi
push edi
push 0x1004
push eax
call dword [0x5977c4]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call fcn.004b9a50
add esp, 4
test al, al
je 0x51577d
mov eax, dword [0x5f9f88]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
xor ebp, ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebp
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 8
call fcn.00519c50
mov dword [esp + 0x74], ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0x94], 9
call fcn.00519cd0
push 0x5ebdd8
lea ecx, [esp + 0x50]
call fcn.0051a040
test al, al
je 0x5156ce
lea ecx, [esp + 0x4c]
call fcn.0051a520
mov eax, dword [esp + 0x58]
push edi
push 0x5ebdbc
push eax
lea ecx, [esp + 0x58]
call fcn.0051c120
lea eax, [edi + 0x5f]
mov ecx, dword [esp + 0x58]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
inc eax
push eax
push 0x5ebdb0
push ecx
lea ecx, [esp + 0x58]
call fcn.0051c120
lea ecx, [esp + 0x4c]
call fcn.0051a520
push 0x5ebe70
lea ecx, [esp + 0x50]
call fcn.00519fd0
test al, al
je 0x5155b7
lea ecx, [esp + 0x4c]
call fcn.0051a5c0
push 0x5ebe70
lea ecx, [esp + 0x50]
call fcn.00519fd0
test al, al
jne 0x51559c
mov eax, dword [esi + 0x64]
test eax, eax
jle 0x5156ba
xor edi, edi
mov bl, 0xa
mov edx, dword [esi + 0x60]
mov eax, dword [edi + edx + 0x2d0]
test eax, eax
jne 0x5156a8
push 0
push 0
push 0x5ebe70
lea ecx, [esp + 0x58]
call fcn.0051d2d0
mov eax, dword [0x5f9f88]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x60]
lea eax, [esp + 0x14]
mov byte [esp + 0x90], bl
mov edx, dword [edi + ecx]
push edx
push 0x5e78b0
push eax
call 0x5deeb4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
add esp, 0xc
push ecx
push 0x5ebe6c
push edx
lea ecx, [esp + 0x58]
call fcn.0051c160
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
push eax
push 0x5ebe60
push ecx
lea ecx, [esp + 0x58]
call fcn.0051c160
mov edx, dword [esi + 0x60]
lea ecx, [esp + 0x4c]
lea eax, [edi + edx + 4]
push eax
mov eax, dword [esp + 0x5c]
push 0x5ebe5c
push eax
call fcn.0051c160
mov ecx, dword [esi + 0x60]
mov edx, dword [esp + 0x58]
lea eax, [edi + ecx + 0x44]
lea ecx, [esp + 0x4c]
push eax
push 0x5ebe58
push edx
call fcn.0051c160
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x58]
lea eax, [edi + eax + 0x148]
push eax
push 0x5ebe50
push ecx
lea ecx, [esp + 0x58]
call fcn.0051c160
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 9
call 0x5e370c
mov eax, dword [esi + 0x64]
inc ebp
add edi, 0x2d4
cmp ebp, eax
jl 0x5155c6
lea ecx, [esp + 0x4c]
call fcn.0051a560
lea ecx, [esp + 0x4c]
call fcn.0051a560
xor ebp, ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
call fcn.00519e40
mov eax, dword [esp + 0x80]
xor edi, edi
dec eax
mov byte [esp + 0x90], 0xc
sar eax, 0x10
inc eax
test eax, eax
jle 0x515717
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + edi*4]
push eax
call 0x5e2b2c
mov edx, dword [esp + 0x84]
add esp, 4
inc edi
dec edx
sar edx, 0x10
inc edx
cmp edi, edx
jl 0x5156f6
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x515728
push eax
call 0x5e2b2c
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, ebp
je 0x515755
xor edi, edi
mov ecx, dword [eax + edi]
cmp ecx, ebp
je 0x515744
push 3
call fcn.005151d0
mov eax, dword [esp + 0x78]
add edi, 4
cmp edi, 0x1c
jl 0x515732
push eax
call 0x5e2b2c
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x78], ebp
mov byte [esp + 0x90], 0xb
call 0x5e370c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 3
call 0x5e370c
jmp 0x51577f
xor ebp, ebp
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebp
jle 0x5157e1
mov bl, 0xd
mov eax, dword [0x5f9f88]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x70]
mov byte [esp + 0x90], bl
mov edx, dword [ecx + edi*4]
lea ecx, [esp + 0x20]
dec edx
push edx
push eax
push 0x5eff8c
push ecx
call 0x5deeb4
mov edx, dword [esp + 0x30]
add esp, 0x10
push edx
call dword [0x597424]
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 3
call 0x5e370c
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jl 0x51578b
xor ebp, ebp
cmp dword [esp + 0x98], ebp
je 0x5157f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call 0x5e370c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0x5999c4
cmp eax, ebp
je 0x51581e
push eax
call 0x5e2b2c
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 4