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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x5047f6
sub esp, 0x94
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x5046eb
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
jne 0x50469f
mov ebx, dword [esp + 0xac]
test ebx, ebx
jne 0x504696
cmp al, 0x30
je 0x504478
mov ebp, 0xa
xor esi, esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], esi
mov byte [esp + 0x2f], al
mov dword [esp + 0x54], ebp
mov dword [esp], ebp
call fcn.00503d40
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x60], edx
mov edx, 0xffffffff
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
jmp 0x503f28
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov byte [esp + 0x2f], cl
mov dword [esp + 0x38], eax
mov edi, ebx
mov esi, edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0xa8]
movzx eax, byte [esp + 0xb0]
test al, al
je 0x50446c
movzx ebx, byte [esp + 0x2f]
cmp bl, 0x2e
je 0x504361
mov dword [esp + 0x5c], esi
lea esi, [ebx - 0x30]
xchg esi, eax
cmp al, 9
xchg esi, eax
ja 0x504319
xchg esi, eax
movzx ebx, al
xchg esi, eax
cmp ebx, edx
jae 0x5042cd
mov byte [esp + 0xb0], al
mov esi, dword [esp + 0x3c]
imul esi, edx
add ebx, esi
mov esi, dword [esp + 0x34]
inc esi
cmp ecx, esi
je 0x504266
mov edi, dword [esp + 0xa0]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x38]
inc eax
movzx ecx, byte [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test edx, edx
je 0x503ef3
mov ecx, dword [0xbb4f70]
cmp ecx, edx
je 0x504013
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ebx
add esp, 0x94
ret
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x7c], ebx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov eax, dword [0xbb4f74]
mov dword [esp + 8], eax
call fcn.00402e90
movzx eax, byte [esp + 0xc]
test al, al
je 0x504255
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x5c], eax
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
test eax, eax
jne 0x50416d
mov ecx, dword [esp + 0xac]
test ecx, ecx
jne 0x504167
mov edx, dword [esp + 0x54]
cmp edx, 8
jne 0x5040fb
mov eax, 0xa
mov ecx, 1
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], edx
add esp, 0x94
ret
test ecx, ecx
je 0x50414c
lea eax, [0x787c00]
mov dword [esp], eax
call fcn.00409dc0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1c
mov eax, dword [0xbc7270]
test eax, eax
jne 0x50413f
lea eax, [0x7e73f5]
mov dword [edi], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, edi
lea ebx, [0x8f8790]
jmp 0x5040b7
lea eax, [0x7e73f5]
call fcn.0044cc20
jmp 0x50412a
cmp edx, 8
jne 0x5040ff
mov eax, edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x5c]
jmp 0x5040b7
mov edx, dword [esp + 0x54]
jmp 0x5040fd
mov dword [esp + 0x38], edi
test ecx, ecx
jg 0x5041ec
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.004fbcd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x38]
test ebx, ebx
jl 0x5041e6
mov ebp, dword [esp + 0x58]
sub ebx, ebp
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xcc], eax
add esp, 0x94
ret
mov ebx, dword [esp + 0x58]
jmp 0x50419f
mov dword [esp + 0x78], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00503d90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004fc420
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
jmp 0x504175
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x7c]
jmp 0x503fcb
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call fcn.004fc420
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0xa4]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x80], ecx
jmp 0x503f89
mov dword [esp + 0x7c], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
jmp 0x50407e
lea esi, [ebx - 0x61]
xchg esi, eax
cmp al, 0x19
xchg esi, eax
ja 0x504330
lea esi, [ebx - 0x57]
xchg esi, eax
movzx ebx, al
xchg esi, eax
jmp 0x503f5d
lea esi, [ebx - 0x41]
xchg esi, eax
cmp al, 0x19
xchg esi, eax
ja 0x504357
cmp edx, 0x24
jg 0x50434a
add ebx, 0xffffffc9
movzx ebx, bl
jmp 0x503f5d
lea esi, [ebx - 0x1d]
xchg esi, eax
movzx ebx, al
xchg esi, eax
jmp 0x503f5d
mov ebx, 0x3f
jmp 0x503f5d
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
movzx edx, byte [esp + 4]
test ecx, ecx
jne 0x5043a5
mov ebp, dword [esp + 0xa4]
mov ebx, edx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x58], esi
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
xor eax, eax
jmp 0x503f46
mov edx, dword [0xbb4f70]
cmp edx, ecx
je 0x5043fb
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0x94
ret
mov dword [esp + 0x7c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0xbb4f74]
mov dword [esp + 8], edx
call fcn.00402e90
movzx eax, byte [esp + 0xc]
test al, al
je 0x50445f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov edi, eax
xor eax, eax
mov dword [esp + 0x5c], eax
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov eax, edi
mov ecx, dword [esp + 0x34]
jmp 0x50407e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x4c]
jmp 0x5043af
xor eax, eax
movzx ebx, byte [esp + 0x2f]
jmp 0x503f46
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
je 0x50458d
mov eax, dword [0xbb4f70]
cmp eax, edx
je 0x5044f9
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0xa
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
add esp, 0x94
ret
mov dword [esp + 0x80], ecx
mov dword [esp + 0x5c], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [0xbb4f74]
mov dword [esp + 8], eax
call fcn.00402e90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x504533
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x5c]
jmp 0x5044ad
mov eax, dword [esp + 0x98]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 0xa
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
add esp, 0x94
ret
movzx ebx, byte [esp + 0xb0]
test bl, bl
je 0x50468c
mov ebp, 0xa
cmp al, 0x58
ja 0x504679
cmp al, 0x42
jne 0x504666
mov ebp, 2
mov dword [esp + 0x58], ebp
cmp ebp, 2
jne 0x50464d
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xa8]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
jne 0x504601
xor ebx, ebx
mov ebp, dword [esp + 0x58]
mov esi, ebx
mov ebx, dword [esp + 0xac]
jmp 0x503e59
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
add esp, 0x94
ret
cmp ebp, 8
jne 0x504656
xor ebx, ebx
jmp 0x5045ef
cmp ebp, 0x10
je 0x5045c6
mov ebx, 1
jmp 0x5045ef
cmp al, 0x58
jne 0x5045b9
mov ebp, 0x10
jmp 0x5045b9
cmp al, 0x62
je 0x5045b4
cmp al, 0x78
je 0x50466f
jmp 0x5045b9
mov ebp, 8
jmp 0x5045a2
mov ebp, ebx
xor esi, esi
jmp 0x503e59
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
add esp, 0x94
ret
movzx ecx, byte [esp + 0xb0]
test cl, cl
je 0x504731
xor edx, edx
test dl, dl
jne 0x503e0f
test cl, cl
je 0x50472d
cmp eax, 2
jne 0x504719
mov edx, 1
test dl, dl
jne 0x503e0f
jmp 0x504742
cmp eax, 0xa
jne 0x504725
mov edx, 1
jmp 0x50470f
cmp eax, 0x10
sete dl
jmp 0x50470f
xor edx, edx
jmp 0x50470f
cmp eax, 2
jl 0x50473e
cmp eax, 0x3e
setle dl
jmp 0x5046f9
xor edx, edx
jmp 0x5046f9
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x771460]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00407550
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea eax, [0x7e3a53]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x8c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004bca60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427510
ud2
call fcn.0044b4c0
jmp fcn.00503de0