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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5165a6
sub esp, 0x74
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.004a7c60
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 0x51659b
call fcn.004d0400
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
cmp dword [esp + 8], 0
je 0x516590
mov dword [esp], 4
mov eax, 0x619c80
mov dword [esp + 4], eax
call fcn.00428b60
mov ecx, dword [esp + 0x78]
cmp eax, 0
jne 0x516586
mov ebx, dword [ecx + 0x10]
and ebx, 0x18
cmp ebx, 0
je 0x5162d8
mov dword [esp], ecx
cmp dword [esp], 0
je 0x51657b
call fcn.004d05e0
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.00406c30
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 0x5162be
mov ebx, 0x5f5bf3
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 0x516570
call fcn.004d0400
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 0x516565
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.00515680
mov ebx, dword [esp + 0x78]
cmp ebx, 0
je 0x51655e
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 0x5163ab
mov dword [esp], 0x5c4440
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.0043c470
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 0x516557
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.004537a0
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 0x516538
mov dword [edi + 0x1c], ebp
cmp ecx, 0
je 0x5164a1
mov ebx, ecx
dec ebx
cmp ebx, ecx
jae 0x516531
mov ebp, dword [esp + 0x80]
add ebp, ebx
movzx ebx, byte [ebp]
cmp bl, 0xa
jne 0x5164a1
cmp edi, 0
je 0x51649d
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.00429a30
add esp, 0x74
ret
mov dword [edi], eax
jmp 0x516441
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x5164c0
mov dword [edi + 0x20], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0xa
jmp 0x51643c
mov dword [esp], 0x5c4440
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c470
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edi, 0
je 0x51652d
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 0x516510
mov dword [edi + 0x1c], ecx
jmp 0x5164b4
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040f3d0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x5164b4
mov dword [edi], eax
jmp 0x5164f1
call fcn.00428880
ud2
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040f3d0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
jmp 0x516416
call fcn.004288f0
ud2
mov dword [ebx], eax
jmp 0x516343
mov dword [0], eax
jmp 0x5162f4
mov dword [0], eax
jmp 0x5162cf
mov dword [0], eax
jmp 0x516272
nop
call fcn.00429a30
add esp, 0x74
ret
mov dword [0], eax
jmp 0x516238
mov dword [0], eax
jmp 0x516220
call fcn.00450fb0
jmp fcn.005161b0