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

Disassembly:
push 0xffffffffffffffff
push 0x54b259
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2e0]
cmp dword [esi + 4], 0x147
mov ebx, ecx
sbb eax, eax
neg eax
or dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
and eax, 1
mov dword [esp + 0x2c], esi
je 0x5193db
mov ecx, dword [esp + 0x2e8]
mov edx, dword [esp + 0x2e4]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00518ca0
jmp 0x519d6f
mov eax, dword [esi]
mov dword [ebx + 0x274], eax
test al, 1
jne 0x5193ee
xor al, al
jmp 0x519d6f
mov eax, dword [esp + 0x2e8]
mov edx, dword [esp + 0x2e4]
lea edi, [ebx + 0x7c]
mov dword [edi], eax
lea eax, [ebx + 0x170]
lea ecx, [esi + 0x20]
push eax
mov dword [ebx + 0x278], ecx
add edx, 0xffffffe0
push esi
mov ecx, edi
mov dword [ebx + 0x27c], edx
call fcn.00514290
mov eax, dword [edi]
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0x27c]
mov edx, dword [ebx + 0x278]
xor ebp, ebp
push ebp
push ecx
push edx
mov ecx, ebx
call fcn.005143a0
mov eax, dword [ebx + 0x274]
shr eax, 1
test al, 1
je 0x519489
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x2e8]
lea ecx, [ebx + 0x84]
push eax
call fcn.0053d990
lea eax, [ebx + 0x84]
push eax
push esi
mov ecx, edi
call fcn.00514800
mov ecx, dword [ebx + 0x27c]
mov edx, dword [ebx + 0x278]
push ecx
push edx
lea ecx, [ebx + 0x84]
call fcn.0053d940
movzx esi, word [esi + 8]
lea edi, [ebx + 0x280]
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.0047eab0
push esi
mov ecx, edi
call fcn.00518700
push ebp
lea ecx, [ebx + 0x2d8]
push esi
call fcn.00515720
xor edi, edi
cmp esi, ebp
jle 0x5199ef
lea ecx, [ecx]
mov eax, dword [ebx + 0x2e8]
sub eax, dword [ebx + 0x2e4]
sar eax, 2
cmp edi, eax
jb 0x5194d8
call fcn.00526bf6
mov ecx, dword [ebx + 0x2e4]
mov dword [ecx + edi*4], 0xffffffff
inc edi
cmp edi, esi
jl 0x5194c0
cmp esi, ebp
jle 0x5199ef
mov dword [esp + 0x20], esi
jmp 0x519500
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x519510
mov edx, dword [ebx + 0x274]
shr edx, 1
test dl, 1
je 0x51952b
push edi
lea ecx, [ebx + 0x84]
call fcn.0053dcb0
jmp 0x519534
mov eax, dword [ebx + 0x278]
mov al, byte [edi + eax]
mov byte [esp + esi + 0x208], al
inc esi
inc edi
cmp esi, 5
jl 0x519510
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20c]
push edx
call fcn.005142f0
add dword [esp + 0x18], eax
push 4
call fcn.00526c21
add esp, 4
cmp eax, ebp
je 0x51956e
lea ecx, [esp + 0x38]
mov dword [eax], ecx
jmp 0x519570
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x54]
cmp eax, ebp
mov dword [esp + 0x2d8], 1
jle 0x519970
lea edx, [esp + 0xe8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x34], eax
jmp 0x5195b0
mov edi, dword [esp + 0x18]
xor esi, esi
mov eax, dword [ebx + 0x274]
shr eax, 1
test al, 1
je 0x5195d0
push edi
lea ecx, [ebx + 0x84]
call fcn.0053dcb0
jmp 0x5195d9
mov ecx, dword [ebx + 0x278]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x250], al
inc esi
inc edi
cmp esi, 0x2c
jl 0x5195b6
add dword [esp + 0x18], 0x2c
lea esi, [ebx + 0x170]
push esi
lea ecx, [ebx + 0x7c]
call fcn.00514910
push 0x2c
lea edx, [esp + 0x254]
push edx
mov eax, edx
push eax
mov ecx, esi
call fcn.004bf000
push 4
mov dword [esp + 0x78], 0x46e320
call fcn.00526c21
add esp, 4
cmp eax, ebp
je 0x519630
lea ecx, [esp + 0xe8]
mov dword [eax], ecx
jmp 0x519632
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xfc], ebp
lea ecx, [esp + 0x74]
mov byte [esp + 0x2d8], 3
call fcn.0050e580
mov dword [esp + 0x74], 0x46e328
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebp
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], ebp
mov dword [esp + 0x118], ebp
lea edx, [esp + 0x250]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x2dc], 4
call fcn.0050e1c0
mov edi, dword [esp + 0x278]
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x5198cc
xor esi, esi
jmp 0x5196d0
mov eax, dword [ebx + 0x274]
shr eax, 1
test al, 1
je 0x5196ea
push edi
lea ecx, [ebx + 0x84]
call fcn.0053dcb0
jmp 0x5196f3
mov ecx, dword [ebx + 0x278]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x200], al
inc esi
inc edi
cmp esi, 8
jl 0x5196d0
mov eax, dword [ebx + 0x7c]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x210]
lea esi, [ebx + 0x170]
push edx
mov ecx, esi
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], edi
mov dword [esp + 0x21c], eax
mov dword [esp + 0x220], edi
call fcn.004bea70
push 8
lea eax, [esp + 0x204]
mov ecx, eax
push eax
push ecx
mov ecx, esi
call fcn.004bf000
mov eax, dword [esp + 0x200]
mov edx, dword [esp + 0x204]
add edi, 8
lea esi, [eax - 8]
mov dword [esp + 0x1c], edi
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], 0x465920
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], edi
mov byte [esp + 0x68], 1
mov dword [esp + 0x6c], ebp
cmp esi, ebp
jbe 0x5197a5
push esi
call fcn.005260f6
mov edi, esi
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x24], eax
jmp 0x5197a9
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov eax, edi
neg eax
sbb eax, eax
and eax, ecx
push edi
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0x2e4], 5
call fcn.00514400
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x224], ecx
mov dword [esp + 0x22c], ecx
mov esi, edi
neg esi
lea ecx, [esp + 0x220]
sbb esi, esi
and esi, dword [esp + 0x24]
push ecx
lea ecx, [ebx + 0x170]
mov dword [esp + 0x224], eax
mov dword [esp + 0x22c], eax
call fcn.004bea70
push edi
push esi
push esi
lea ecx, [ebx + 0x170]
call fcn.004bf000
sub esp, 0x18
mov esi, esp
lea edx, [esp + 0x70]
mov dword [esp + 0x34], esp
mov dword [esi], 0x465920
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ebp
cmp edx, esi
je 0x51989d
mov eax, edi
neg eax
sbb eax, eax
and eax, dword [esp + 0x3c]
mov dword [esi + 4], ebp
mov dword [esp + 0x34], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ebp
cmp edi, ebp
jbe 0x51989d
push edi
call fcn.005260f6
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
cmp dword [esp + 0x34], ebp
je 0x51988c
mov ecx, dword [esp + 0x34]
push edi
push ecx
push eax
call fcn.00526df0
jmp 0x51989a
cmp dword [esi + 0x14], 1
jne 0x51989d
push edi
push ebp
push eax
call fcn.00526600
add esp, 0xc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.005164b0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x2d8], 4
cmp eax, ebp
je 0x5198cc
push eax
call fcn.00526d49
add esp, 4
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004a8900
mov dword [esp + 0x118], ebp
mov dword [esp + 0x74], 0x46e320
lea ecx, [esp + 0x74]
mov byte [esp + 0x2d8], 6
call fcn.0050e580
mov esi, dword [esp + 0xf4]
mov byte [esp + 0x2d8], 7
cmp esi, ebp
je 0x519938
mov edi, dword [esp + 0xf8]
cmp esi, edi
je 0x51992f
mov edx, dword [esi]
mov eax, dword [edx]
push ebp
mov ecx, esi
call eax
add esi, 0x18
cmp esi, edi
jne 0x519918
mov esi, dword [esp + 0xf4]
push esi
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0xe8]
push ecx
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x100], ebp
mov byte [esp + 0x2dc], 1
call fcn.005265f5
add esp, 4
sub dword [esp + 0x34], 1
jne 0x5195b0
lea edx, [esp + 0x38]
push edx
lea ecx, [ebx + 0x280]
call fcn.00518c00
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2d8], 8
cmp esi, ebp
je 0x5199c0
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x5199b7
jmp 0x5199a0
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
mov ecx, esi
call edx
add esi, 0xa8
cmp esi, edi
jne 0x5199a0
mov esi, dword [esp + 0x44]
push esi
call fcn.005265f5
add esp, 4
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x2dc], 0xffffffff
call fcn.005265f5
add esp, 4
sub dword [esp + 0x20], 1
jne 0x519500
mov esi, dword [esp + 0x2c]
movzx ecx, word [esi + 0xa]
mov eax, dword [ebx + 0x2c8]
lea edi, [ebx + 0x2b8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
cmp dword [edi + 0xc], eax
jbe 0x519a15
call fcn.00526bf6
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x200], edx
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x10]
jbe 0x519a2f
call fcn.00526bf6
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x200]
mov eax, dword [edi]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push eax
lea edx, [esp + 0x12c]
push edx
mov ecx, edi
call fcn.0047b010
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00515860
xor edi, edi
cmp dword [esp + 0x1c], ebp
jle 0x519c04
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
xor esi, esi
mov edx, dword [ebx + 0x274]
shr edx, 1
test dl, 1
je 0x519a94
push ecx
lea ecx, [ebx + 0x84]
call fcn.0053dcb0
mov ecx, dword [esp + 0x20]
jmp 0x519a9d
mov eax, dword [ebx + 0x278]
mov al, byte [ecx + eax]
mov byte [esp + esi + 0x230], al
inc esi
inc ecx
cmp esi, 0x20
mov dword [esp + 0x20], ecx
jl 0x519a75
add dword [esp + 0x18], 0x20
lea esi, [ebx + 0x170]
push esi
lea ecx, [ebx + 0x7c]
call fcn.00514910
push 0x20
lea ecx, [esp + 0x234]
push ecx
mov edx, ecx
push edx
mov ecx, esi
call fcn.004bf000
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x1a4], ebp
mov dword [esp + 0x1a8], ebp
mov dword [esp + 0x1ac], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x134], ebp
mov dword [esp + 0x138], ebp
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x140], ebp
mov dword [esp + 0x144], ebp
mov dword [esp + 0x148], ebp
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x150], ebp
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], ebp
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x184], ebp
mov dword [esp + 0x160], ebp
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], ebp
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x170], ebp
mov dword [esp + 0x174], ebp
mov dword [esp + 0x178], ebp
mov dword [esp + 0x17c], ebp
mov dword [esp + 0x180], ebp
mov dword [esp + 0x188], ebp
mov dword [esp + 0x18c], ebp
mov dword [esp + 0x190], ebp
mov dword [esp + 0x194], ebp
push edi
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x138]
mov dword [esp + 0x2e0], 9
call fcn.0050ea30
lea ecx, [esp + 0x130]
push ecx
lea ecx, [ebx + 0x2b8]
call fcn.00516390
inc edi
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x2d8], 0xffffffff
jl 0x519a6b
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2d0], eax
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x2d4], edx
add eax, dword [esi + 0xc]
lea edi, [ebx + 0x298]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.00479380
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], ebp
mov dword [eax], eax
mov edi, dword [edi + 0x18]
xor edx, edx
mov dword [edi + 8], edi
mov dword [esp + 0x20], ebp
cmp dx, word [esi + 0x10]
jae 0x519d50
mov edi, dword [esp + 0x18]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebx + 0x274]
shr eax, 1
test al, 1
je 0x519c7a
push edi
lea ecx, [ebx + 0x84]
call fcn.0053dcb0
jmp 0x519c83
mov ecx, dword [ebx + 0x278]
mov al, byte [edi + ecx]
mov byte [esp + esi + 0x27c], al
inc esi
inc edi
cmp esi, 0x50
jl 0x519c60
lea esi, [ebx + 0x170]
push esi
lea ecx, [ebx + 0x7c]
call fcn.00514910
push 0x50
lea edx, [esp + 0x280]
push edx
mov eax, edx
push eax
mov ecx, esi
call fcn.004bf000
mov ecx, dword [esp + 0x27c]
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x284]
mov dword [esp + 0x1b0], ecx
mov ecx, dword [esp + 0x288]
mov dword [esp + 0x1bc], ecx
mov ecx, 0x10
lea esi, [esp + 0x28c]
lea edi, [esp + 0x1c0]
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x1b8], eax
rep movsd dword es:[edi], dword [esi]
add dword [esp + 0x18], 0x50
lea edx, [esp + 0x1b0]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [ebx + 0x298]
mov dword [esp + 0x2e0], 0xa
call fcn.00515620
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
movzx edx, word [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x2d8], 0xffffffff
mov dword [esp + 0x20], eax
jl 0x519c56
push ebp
push ebp
push ecx
mov eax, esp
mov dword [eax], 1
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], esp
push ecx
mov ecx, ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.00526a8a
add esp, 0x2c8
ret 0xc