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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x50f66c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50fd67
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x16c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebx + 0x264]
call fcn.004057f8
mov eax, dword [ebp - 0x1c]
call fcn.0040b214
test al, al
jne 0x50f6cf
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x16c]
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 0x264]
call fcn.004057f8
mov eax, dword [ebp - 0x20]
call fcn.0040b430
mov eax, dword [0x707654]
mov eax, dword [eax]
mov edx, dword [ebx + 0x14]
call fcn.006b6374
test eax, eax
jne 0x50fd3f
lea eax, [ebp - 8]
mov edx, 0x50fd80
call fcn.00405568
mov eax, dword [0x7070f8]
push dword [eax + 0x16c]
push dword [ebx + 0x264]
push 0x50fd94
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405874
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42e178]
call fcn.0042e230
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50fd3f
cmp dword [ebx + 0x18], 0
je 0x50f751
mov eax, dword [ebx + 0x18]
push eax
mov ecx, 0x50fda0
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x1c], 0
je 0x50f76d
mov eax, dword [ebx + 0x1c]
push eax
mov ecx, 0x50fdc4
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
push dword [ebx + 0x34]
push dword [ebx + 0x30]
mov ecx, 0x50fdd8
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x34]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov ecx, 0x50fdec
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x34]
push dword [ebx + 0x23c]
push dword [ebx + 0x238]
mov ecx, 0x50fdfc
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebx + 0x240]
test eax, eax
je 0x50f7d8
push eax
mov ecx, 0x50fe10
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x244]
test eax, eax
je 0x50f7f5
push eax
mov ecx, 0x50fe24
mov edx, 0x50fdb4
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x268]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50f839
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, dword [ebx + 0x268]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x24]
push 0x50fe38
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405874
inc esi
dec dword [ebp - 0x18]
jne 0x50f80b
cmp dword [ebp - 0xc], 0
je 0x50f855
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x50fe44
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x14], 0
je 0x50f871
mov eax, dword [ebx + 0x14]
push eax
mov ecx, 0x50fe6c
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x24], 0
je 0x50f88d
mov eax, dword [ebx + 0x24]
push eax
mov ecx, 0x50fe80
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x50f8a7
push eax
mov ecx, 0x50fe98
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x50f8c1
push eax
mov ecx, 0x50feac
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x248]
test eax, eax
je 0x50f8de
push eax
mov ecx, 0x50fec0
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x24c]
test eax, eax
je 0x50f8fb
push eax
mov ecx, 0x50fed8
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebx + 0x254], 0
je 0x50f91d
mov eax, dword [ebx + 0x254]
push eax
mov ecx, 0x50fef0
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x258], 0
je 0x50f93f
mov eax, dword [ebx + 0x258]
push eax
mov ecx, 0x50ff08
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x25c]
test eax, eax
je 0x50f95c
push eax
mov ecx, 0x50ff20
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x260]
test eax, eax
je 0x50f979
push eax
mov ecx, 0x50ff3c
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x50f993
push eax
mov ecx, 0x50ff58
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x50f9ad
push eax
mov ecx, 0x50ff6c
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebx + 0x60], 0
je 0x50f9c9
mov eax, dword [ebx + 0x60]
push eax
mov ecx, 0x50ff80
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x6c], 0
je 0x50fa02
movzx eax, byte [ebx + 0x64]
push eax
mov ecx, 0x50ff98
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x16c]
push eax
mov ecx, 0x50ffb0
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x50fa1c
push eax
mov ecx, 0x50ffc4
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x50fa36
push eax
mov ecx, 0x50ffd8
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebx + 0x78], 0
je 0x50fa52
mov eax, dword [ebx + 0x78]
push eax
mov ecx, 0x50ffec
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x50fa75
mov eax, dword [eax + 0x16c]
push eax
mov ecx, 0x510004
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x50fa92
push eax
mov ecx, 0x510018
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x50faaf
push eax
mov ecx, 0x51002c
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebx + 0x90], 0
je 0x50fad1
mov eax, dword [ebx + 0x90]
push eax
mov ecx, 0x510040
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x50faf4
mov eax, dword [eax + 0x16c]
push eax
mov ecx, 0x510058
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x50fb11
push eax
mov ecx, 0x510070
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x50fb2e
push eax
mov ecx, 0x510084
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebx + 0xa8], 0
je 0x50fb50
mov eax, dword [ebx + 0xa8]
push eax
mov ecx, 0x510098
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x50fb73
mov eax, dword [eax + 0x16c]
push eax
mov ecx, 0x5100b0
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
xor esi, esi
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8 + 0x118]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x50fbc7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
push 0x5100c4
lea edx, [ebp - 0x2c]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x2c]
push 0x5100d4
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x28]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x50fc14
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x16c]
push eax
push 0x5100c4
lea edx, [ebp - 0x34]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x34]
push 0x5100e4
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x30]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
jmp 0x50fc4b
push 0
push 0x5100c4
lea edx, [ebp - 0x3c]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x3c]
push 0x5100e4
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x38]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
cmp esi, 0xc
jne 0x50fb75
xor esi, esi
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8 + 0xb8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x50fca9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
push 0x5100f0
lea edx, [ebp - 0x44]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x44]
push 0x5100d4
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x40]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x50fcf6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x16c]
push eax
push 0x5100f0
lea edx, [ebp - 0x4c]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x4c]
push 0x5100e4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x48]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
jmp 0x50fd2d
push 0
push 0x5100f0
lea edx, [ebp - 0x54]
lea eax, [esi + 1]
call fcn.0040ab6c
push dword [ebp - 0x54]
push 0x5100e4
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00405874
mov ecx, dword [ebp - 0x50]
mov edx, 0x50fe5c
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
cmp esi, 4
jne 0x50fc57
mov eax, dword [ebp - 0x10]
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fd6e
lea eax, [ebp - 0x54]
mov edx, 0xf
call fcn.004054f4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054f4
ret