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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x503434
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x503733
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
lea ecx, [ebp - 0xc]
mov edx, dword [esi + 0x98]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
cmp dword [ebp - 0xc], 0
jne 0x503491
mov ecx, 0x2cb
mov edx, 0x503750
mov eax, 0x5037d4
call fcn.00406044
xor edx, edx
push ebp
push 0x503701
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x5c]
xor edx, edx
push ebp
push 0x5036f0
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 8]
lea ecx, [edx - 1]
mov edx, eax
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
je 0x5034e1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0x70]
jmp 0x5034e7
mov ebx, dword [esi + 0x98]
lea ecx, [ebp - 0x18]
mov edx, 0x503830
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00508228
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x503830
lea ecx, [ebp - 0x20]
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005081bc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, 0x10
call fcn.00406964
mov eax, esi
mov edx, dword [0x4fe8e0]
call fcn.0040504c
test al, al
je 0x50355b
mov edx, dword [esi + 0xa8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x5035a0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x24]
mov edx, 0x503858
call fcn.004be150
test al, al
je 0x503586
mov edx, 0x503898
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x5035a0
lea ecx, [ebp - 0x28]
mov edx, 0x5038b8
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea ecx, [ebp - 0x2c]
mov edx, 0x5038f8
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x30]
mov edx, 0x50392c
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea ecx, [ebp - 0x34]
mov edx, 0x503950
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
lea ecx, [ebp - 0x38]
mov edx, 0x503980
mov eax, ebx
call fcn.00436a20
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0xce], 0
jne 0x50368c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
add eax, 0x48
mov edx, 0x5039b4
call fcn.00406964
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x50363b
call fcn.00404cf8
test eax, eax
jl 0x50368c
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004367d0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
call fcn.004dbe20
test eax, eax
jge 0x503684
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x50364a
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov edx, dword [esi + 0x90]
call fcn.00406964
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x44]
mov edx, 0x5039c4
call fcn.004be150
test al, al
je 0x5036c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
jmp 0x5036d3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
mov eax, esi
call fcn.00404e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5036f7
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x60]
ret