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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x504862
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 0x504191
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 0x504826
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 0x5041ba
cmp dword [esp + 0x7c], 0
jbe 0x50481f
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 0x5047e3
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 0x504380
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 0x5047a7
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 0x504241
mov ecx, esi
mov ebx, dword [esp + 0x28]
cmp ebx, ecx
jge 0x50432f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x80]
cmp ecx, edx
ja 0x5047a0
cmp eax, ecx
ja 0x5047a0
mov ebp, ecx
sub ebp, eax
sub edx, eax
mov ecx, dword [esp + 0x78]
cmp edx, 0
je 0x50427d
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 0x5042df
mov dword [esp], 0x5c41e0
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.0043c390
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 0x504799
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.004536c0
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 0x504380
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 0x50475d
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 0x50433e
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 0x504721
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 0x5043c9
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp ecx, 0
jge 0x504717
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 0x5046cb
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 0x5044a7
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 0x504474
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], 0x5c41e0
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043c390
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 0x504440
cmp ecx, 0x64
jge 0x504577
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 0x504544
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 0x504457
mov dword [esp], 0x5c41e0
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043c390
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 0x504522
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 0x504698
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 0x504457
mov dword [esp], 0x5c41e0
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0043c390
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 0x504664
mov dword [esp], 0x5c41e0
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.0043c390
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 0x504408
mov byte [esp + 0x20], 0x2b
jmp 0x5043e1
mov dword [esp], 0x5c41e0
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.0043c390
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 0x5043a3
mov dword [esp], 0x5c41e0
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.0043c390
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 0x504361
call fcn.00428810
ud2
call fcn.00428810
ud2
mov dword [esp], 0x5c41e0
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.0043c390
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 0x50421d
mov dword [esp], 0x5c41e0
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.0043c390
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 0x5041dd
call fcn.004287a0
ud2
mov dword [esp], 0x5c41e0
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.0043c390
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 0x50418a
call fcn.00450ed0
jmp fcn.00504130