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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x505bd2
sub esp, 0x64
mov edi, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
cmp byte [esp + 0x74], 0
je 0x505501
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], edi
mov ebx, ecx
inc ebx
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
ja 0x505b96
mov dword [esp + 0x6c], ebx
mov ebx, esi
add ebx, ecx
mov byte [ebx], 0x2d
mov byte [esp + 0x20], 0x30
mov ebx, dword [esp + 0x84]
cmp ebx, 0
je 0x50552a
cmp dword [esp + 0x7c], 0
jbe 0x505b8f
mov ebx, dword [esp + 0x78]
movzx ebp, byte [ebx]
xchg ebp, eax
mov byte [esp + 0x20], al
xchg ebp, eax
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], edi
mov ebx, ecx
inc ebx
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
ja 0x505b53
mov dword [esp + 0x6c], ebx
mov ebx, esi
add ebx, ecx
movzx ebp, byte [esp + 0x20]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x90]
cmp ebx, 0
jle 0x5056f0
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], edi
mov ebx, ecx
inc ebx
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
ja 0x505b17
mov dword [esp + 0x6c], ebx
mov ebx, esi
add ebx, ecx
mov byte [ebx], 0x2e
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x90]
inc ecx
mov esi, dword [esp + 0x84]
cmp esi, ecx
jge 0x5055b1
mov ecx, esi
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
jge 0x50569f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x80]
cmp ecx, edx
ja 0x505b10
cmp eax, ecx
ja 0x505b10
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x78]
cmp edx, 0
je 0x5055ed
add ecx, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ecx
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov eax, edi
mov ebx, dword [esp + 0x5c]
mov ecx, edx
add ecx, ebx
cmp ecx, edi
jbe 0x50564f
mov dword [esp], 0x5c5920
mov dword [esp + 0x4c], esi
mov dword [esp + 4], esi
mov dword [esp + 0x50], edx
mov dword [esp + 8], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], ecx
call fcn.0043d700
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
cmp ecx, eax
ja 0x505b09
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
mov ebp, esi
mov dword [esp + 0x4c], esi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00454a30
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x6c], ebx
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x90]
cmp ebx, ebp
jg 0x5056f0
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x44], edi
mov ebx, ecx
inc ebx
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
ja 0x505acd
mov dword [esp + 0x6c], ebx
mov ebx, esi
add ebx, ecx
mov byte [ebx], 0x30
mov ebx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x90]
cmp ebx, ebp
jle 0x5056ae
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x44], edi
mov ebx, ecx
inc ebx
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
ja 0x505a91
mov dword [esp + 0x6c], ebx
mov ebx, esi
add ebx, ecx
movzx ebp, byte [esp + 0x94]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ecx, dword [esp + 0x88]
dec ecx
mov ebx, dword [esp + 0x84]
cmp ebx, 0
jne 0x505739
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp ecx, 0
jge 0x505a87
mov byte [esp + 0x20], 0x2d
neg ecx
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], edi
mov ebx, esi
inc ebx
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
ja 0x505a3b
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x48]
add ebx, esi
movzx ebp, byte [esp + 0x20]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
cmp ecx, 0xa
jge 0x505817
mov ebx, ecx
add ebx, 0x30
mov byte [esp + 0x23], bl
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov ebx, eax
add ebx, 2
cmp ebx, edi
ja 0x5057e4
mov ecx, ebx
mov ebx, edx
add ebx, eax
mov byte [ebx], 0x30
mov ebx, edx
mov ebp, eax
inc ebp
add ebx, ebp
movzx ebp, byte [esp + 0x23]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edi
add esp, 0x64
ret
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, eax
add ecx, 2
mov dword [esp + 0x68], edx
jmp 0x5057b0
cmp ecx, 0x64
jge 0x5058e7
mov dword [esp + 0x3c], ecx
mov eax, 0x66666667
mov ebp, edx
imul dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, ebp
mov ebp, dword [esp + 0x3c]
sar ebp, 2
mov ebx, ecx
sar ebx, 0x1f
sub ebp, ebx
mov ebx, ebp
add ebx, 0x30
mov byte [esp + 0x23], bl
mov dword [esp + 0x38], ecx
mov eax, 0x66666667
imul dword [esp + 0x38]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x38]
sar ebx, 2
mov ebp, ecx
sar ebp, 0x1f
sub ebx, ebp
imul ebx, ebx, 0xa
mov ebp, ecx
sub ebp, ebx
mov ebx, ebp
add ebx, 0x30
mov byte [esp + 0x22], bl
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov ebx, eax
add ebx, 2
cmp ebx, edi
ja 0x5058b4
mov ecx, ebx
mov ebx, edx
add ebx, eax
movzx ebp, byte [esp + 0x23]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, edx
mov ebp, eax
inc ebp
add ebx, ebp
movzx ebp, byte [esp + 0x22]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
jmp 0x5057c7
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, eax
add ecx, 2
mov dword [esp + 0x68], edx
jmp 0x505892
mov dword [esp + 0x38], ecx
mov ebx, 0x51eb851f
mov ebp, eax
mov esi, edx
mov eax, ebx
imul dword [esp + 0x38]
mov dword [esp + 0x38], edx
mov eax, ebp
mov ebp, dword [esp + 0x38]
sar ebp, 5
mov ebx, ecx
sar ebx, 0x1f
sub ebp, ebx
mov ebx, ebp
add ebx, 0x30
mov byte [esp + 0x23], bl
mov dword [esp + 0x3c], ecx
mov ebx, 0x66666667
mov ebp, eax
mov edx, esi
mov eax, ebx
imul dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov eax, ebp
mov edx, esi
mov esi, dword [esp + 0x3c]
sar esi, 2
mov ebx, ecx
sar ebx, 0x1f
sub esi, ebx
mov ebp, 0xcd
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
xchg ebp, ebx
movzx eax, bl
xchg ebp, ebx
xchg esi, ebx
mul bl
xchg esi, ebx
movzx edx, ah
mov ebx, edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebp, ebx
xchg ebp, eax
shr al, 3
xchg ebp, eax
xchg ebp, eax
mov byte [esp + 0x21], al
xchg ebp, eax
mov ebx, 0xa
movzx ebp, byte [esp + 0x21]
imul ebx, ebp
mov ebp, esi
sub ebp, ebx
mov ebx, ebp
add ebx, 0x30
mov byte [esp + 0x22], bl
mov dword [esp + 0x3c], ecx
mov eax, 0x66666667
imul dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x3c]
sar ebx, 2
mov ebp, ecx
sar ebp, 0x1f
sub ebx, ebp
imul ebx, ebx, 0xa
mov ebp, ecx
sub ebp, ebx
mov ebx, ebp
add ebx, 0x30
mov byte [esp + 0x21], bl
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
mov ebx, eax
add ebx, 3
cmp ebx, edi
ja 0x505a08
mov ecx, ebx
mov ebx, edx
add ebx, eax
movzx ebp, byte [esp + 0x23]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, edx
mov ebp, eax
inc ebp
add ebx, ebp
movzx ebp, byte [esp + 0x22]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, edx
mov ebp, eax
add ebp, 2
add ebx, ebp
movzx ebp, byte [esp + 0x21]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
jmp 0x5057c7
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, eax
add ecx, 3
mov dword [esp + 0x68], edx
jmp 0x5059d4
mov dword [esp], 0x5c5920
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, esi
inc ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x68], ebx
jmp 0x505778
mov byte [esp + 0x20], 0x2b
jmp 0x505751
mov dword [esp], 0x5c5920
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
inc ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
jmp 0x505713
mov dword [esp], 0x5c5920
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
inc ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
jmp 0x5056d1
call fcn.00429b80
ud2
call fcn.00429b80
ud2
mov dword [esp], 0x5c5920
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
inc ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
jmp 0x50558d
mov dword [esp], 0x5c5920
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
inc ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
jmp 0x50554d
call fcn.00429b10
ud2
mov dword [esp], 0x5c5920
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
inc ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
jmp 0x5054fa
call fcn.00452240
jmp fcn.005054a0