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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5046fe
sub esp, 0x60
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.00474df0
lea edi, [esp + 0x4c]
mov esi, esp
call fcn.0044de9e
mov eax, dword [esp + 0x64]
test byte [eax], al
mov dword [esp], eax
call fcn.00454de0
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp], 4
lea ecx, [0x7d06e0]
mov dword [esp + 4], ecx
call fcn.00426be0
test eax, eax
jne 0x5046e6
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x10]
test ecx, 0x18
jne 0x504681
xor ecx, ecx
xor edx, edx
mov ebx, ecx
mov dword [esp + 0x2c], ecx
mov dword [eax + 0x20], 0
lea ebp, [eax + 0x1c]
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebp
mov dword [esp], eax
lea edi, [esp + 8]
lea esi, [esp + 0x4c]
call fcn.0044de9e
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
call fcn.005039a0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x70]
lea ebx, [ecx + edx]
mov dword [esp + 0x38], ebx
mov ebp, dword [eax + 0x1c]
mov esi, eax
mov eax, dword [eax + 0x24]
cmp ebx, eax
ja 0x504642
cmp ebx, eax
ja 0x5046f7
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], eax
lea eax, [ebp + ecx]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0044e0c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x24], eax
mov eax, dword [0xa08230]
test eax, eax
jne 0x504621
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x5045ff
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
lea ebp, [edx + 1]
cmp ebp, ebx
jg 0x504592
lea ebx, [edx + 1]
mov dword [ecx + 0x20], ebx
mov byte [eax + edx], 0xa
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x10]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
nop
call fcn.00427400
add esp, 0x60
ret
lea ecx, [0x744b00]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 0x24], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x5045d9
mov dword [ebx + 0x1c], eax
mov edx, ecx
mov ecx, ebx
jmp 0x50454b
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
jmp 0x5045d0
lea ebx, [edx - 1]
cmp ebx, edx
jae 0x5046f0
mov ebx, dword [esp + 0x6c]
movzx edx, byte [edx + ebx - 1]
cmp dl, 0xa
jne 0x50453e
jmp 0x504555
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.0040f250
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
jmp 0x504532
mov dword [esp + 0x34], ecx
lea edx, [0x744b00]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00439c80
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
jmp 0x5044e3
mov dword [esp], eax
call fcn.00455110
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00405940
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test cl, cl
je 0x5046d7
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
call fcn.00454de0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
jmp 0x504486
mov edx, 3
lea ebx, [0x7b540a]
xor eax, eax
jmp 0x5046aa
nop
call fcn.00427400
add esp, 0x60
ret
call fcn.00426960
ud2
call fcn.004269c0
ud2
call fcn.0044be50
jmp fcn.00504400