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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5163a6
sub esp, 0x74
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.004a7a60
mov ebx, dword [esp]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x70], ebx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x51639b
call fcn.004d0200
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
cmp dword [esp + 8], 0
je 0x516390
mov dword [esp], 4
mov eax, 0x6197e0
mov dword [esp + 4], eax
call fcn.00428960
mov ecx, dword [esp + 0x78]
cmp eax, 0
jne 0x516386
mov ebx, dword [ecx + 0x10]
and ebx, 0x18
cmp ebx, 0
je 0x5160d8
mov dword [esp], ecx
cmp dword [esp], 0
je 0x51637b
call fcn.004d03e0
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.00406a30
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
movzx ebx, byte [esp + 0x14]
cmp bl, 0
jne 0x5160be
mov ebx, 0x5f5833
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 3
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x516370
call fcn.004d0200
mov ecx, dword [esp + 0x78]
mov ebp, dword [ecx + 0x24]
mov dword [ecx + 0x20], 0
mov dword [esp], ecx
mov dword [esp + 4], ecx
cmp dword [esp + 4], 0
je 0x516365
add dword [esp + 4], 0x1c
mov ebx, dword [esp + 0x64]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
call fcn.00515480
mov ebx, dword [esp + 0x78]
cmp ebx, 0
je 0x51635e
mov edi, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x20]
mov dword [esp + 0x5c], ebp
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x84]
mov ebp, esi
add ebp, ebx
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jbe 0x5161ab
mov dword [esp], 0x5c4140
mov dword [esp + 0x4c], edi
mov dword [esp + 4], edi
mov dword [esp + 0x50], esi
mov dword [esp + 8], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
call fcn.0043c270
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
cmp eax, ecx
ja 0x516357
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x5c]
mov ebp, edi
mov dword [esp + 0x4c], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004535a0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov ebp, dword [esp + 0x50]
mov dword [edi + 0x20], ebp
mov ebp, dword [esp + 0x54]
mov dword [edi + 0x24], ebp
mov ebp, dword [esp + 0x4c]
cmp byte [0x6d9e38], 0
jne 0x516338
mov dword [edi + 0x1c], ebp
cmp ecx, 0
je 0x5162a1
mov ebx, ecx
dec ebx
cmp ebx, ecx
jae 0x516331
mov ebp, dword [esp + 0x80]
add ebp, ebx
movzx ebx, byte [ebp]
cmp bl, 0xa
jne 0x5162a1
cmp edi, 0
je 0x51629d
mov ebp, dword [edi + 0x14]
mov dword [esp + 0x44], ebp
mov ebp, dword [edi + 0x18]
mov eax, edi
add eax, 0x1c
lea edi, [esp + 4]
cld
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov dword [esp + 0x48], ebp
mov dword [esp], ebp
mov ebx, dword [esp + 0x44]
mov ebx, dword [ebx + 0x14]
call ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x8c], ecx
nop
call fcn.00429830
add esp, 0x74
ret
mov dword [edi], eax
jmp 0x516241
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x5162c0
mov dword [edi + 0x20], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0xa
jmp 0x51623c
mov dword [esp], 0x5c4140
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c270
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edi, 0
je 0x51632d
mov ebp, eax
mov dword [esp + 0x28], eax
inc ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], edx
mov dword [esp + 0x30], ecx
cmp byte [0x6d9e38], 0
jne 0x516310
mov dword [edi + 0x1c], ecx
jmp 0x5162b4
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040f1d0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x5162b4
mov dword [edi], eax
jmp 0x5162f1
call fcn.00428680
ud2
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040f1d0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
jmp 0x516216
call fcn.004286f0
ud2
mov dword [ebx], eax
jmp 0x516143
mov dword [0], eax
jmp 0x5160f4
mov dword [0], eax
jmp 0x5160cf
mov dword [0], eax
jmp 0x516072
nop
call fcn.00429830
add esp, 0x74
ret
mov dword [0], eax
jmp 0x516038
mov dword [0], eax
jmp 0x516020
call fcn.00450db0
jmp fcn.00515fb0