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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x502fcc
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5032c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42d0c4]
call fcn.00404e00
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5032a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x78]
call fcn.0050a070
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x44]
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00437f78
test bl, bl
je 0x50309c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x50306d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004db0f8
jmp 0x503282
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, 0x5032e0
call fcn.00436a20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004db0a8
jmp 0x503282
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x5030b6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov esi, dword [eax + 0x70]
jmp 0x5030bf
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x98]
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x74]
mov dl, 1
mov eax, dword [0x4f4db8]
call fcn.004f5044
mov ebx, eax
lea ecx, [ebp - 0x1c]
mov edx, 0x5032e0
mov eax, esi
call fcn.00436a20
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebp - 0xc]
call fcn.004db0a8
mov eax, dword [ebx + 0x40]
call fcn.00502d5c
lea ecx, [ebp - 0x24]
mov edx, 0x5032e0
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, ebx
call fcn.00508228
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [ebp - 0x2c]
mov edx, 0x5032e0
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov eax, ebx
call fcn.005081bc
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
call fcn.00406964
lea ecx, [ebp - 0x30]
mov edx, 0x503308
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea ecx, [ebp - 0x34]
mov edx, 0x503348
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x38]
mov edx, 0x50336c
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
lea ecx, [ebp - 0x3c]
mov edx, 0x50339c
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x3c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea ecx, [ebp - 0x40]
mov edx, 0x5033d0
mov eax, esi
call fcn.00436a20
mov edx, dword [ebp - 0x40]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
jne 0x503242
mov eax, dword [ebx + 0x18]
add eax, 0x48
mov edx, 0x503404
call fcn.00406964
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x5031f7
call fcn.00404cf8
test eax, eax
jl 0x503242
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.004367d0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x24]
call fcn.004dbe20
test eax, eax
jge 0x50323a
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x503206
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x90]
call fcn.00406964
lea edx, [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x4c]
mov edx, 0x503414
call fcn.004be150
test al, al
je 0x503279
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dword [ebx + 0x38], eax
jmp 0x503282
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 4]
call fcn.00404e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5032a7
lea eax, [ebp - 0xc]
call fcn.0041ac00
ret