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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, 0x20019
push esi
xor ebx, ebx
push 0x5c51f8
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.004bb84c
cmp eax, ebx
jl 0x50b35c
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x42], 0x70
mov word [ebp - 0x44], 0x6e
mov dword [ebp - 0x40], 0x50b1c4
call fcn.004bb84c
push dword [ebp - 0x1c]
mov esi, eax
call fcn.0040c496
cmp esi, ebx
jl 0x51e19c
push 0x226
lea eax, [ebp - 0x58]
push eax
call fcn.004ca92b
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x50b322
mov dword [ebp - 0x4c], 0x50b234
mov dword [ebp - 0x48], 0x50b24c
mov dword [ebp - 0xc], ebx
push edi
mov eax, dword [ebp - 0xc]
lea edi, [ebp + eax - 0x34]
push edi
push dword [ebp + eax - 0x4c]
push dword [ebp + 8]
call fcn.004bb794
test eax, eax
jl 0x50b30b
mov eax, dword [edi]
cmp dword [eax + 4], 7
jne 0x50b289
cmp dword [eax + 0xc], ebx
je 0x50b289
mov esi, dword [eax + 8]
add esi, eax
mov dword [ebp - 0x28], esi
mov ax, word [eax + 0xc]
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push eax
push eax
call fcn.004d87ab
mov ecx, dword [edi]
mov edi, dword [ecx + 0xc]
add edi, esi
mov eax, esi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 0x14], eax
je 0x50b30b
cmp word [eax], bx
je 0x50b268
mov eax, dword [ebp - 0x14]
inc eax
inc eax
cmp eax, edi
jmp 0x50b1a8
sub eax, esi
mov word [ebp - 0x2c], ax
add eax, 2
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x28], esi
push dword [ebp - 0x58]
mov dword [ebp - 0x10], ebx
push ebx
push ebx
jmp 0x50b295
push ebx
push eax
call fcn.0047a1e6
jmp 0x51e389
push dword [ebp - 8]
call fcn.0040c82e
cmp eax, 0x8000001a
mov dword [ebp - 4], eax
je 0x50b2f8
cmp dword [ebp - 4], 0x80000005
je 0x51e1a3
cmp dword [ebp - 4], ebx
jl 0x50b321
mov eax, dword [ebp - 0x58]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov ax, word [eax + 0xc]
mov word [ebp - 0x3c], ax
mov word [ebp - 0x3a], ax
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00495684
test al, al
jne 0x51e1c5
inc dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push ebx
push dword [ebp - 0x10]
jmp 0x50b295
mov esi, dword [ebp - 0x14]
add esi, 2
cmp esi, edi
je 0x50b30b
cmp word [esi], bx
jne 0x50b1ba
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 8
jb 0x50b14b
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 4], ebx
pop edi
cmp dword [ebp - 0x58], ebx
je 0x50b330
lea eax, [ebp - 0x58]
push eax
call fcn.004ca9d2
cmp dword [ebp - 8], ebx
je 0x50b33d
push dword [ebp - 8]
call fcn.0040c496
cmp dword [ebp - 0x34], ebx
je 0x50b34b
push ebx
push dword [ebp - 0x34]
call fcn.0047a1e6
cmp dword [ebp - 0x30], ebx
je 0x50b359
push ebx
push dword [ebp - 0x30]
call fcn.0047a1e6
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x1c
mov eax, esi
jmp 0x50b35c
push ebx
push dword [ebp - 0x20]
lea eax, [ebp - 0x58]
push eax
call fcn.004ca960
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x50b2e8
jmp 0x50b321
push 0x20019
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004bb84c
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x50b321
push 0x6e657050
push 0xa8
push ebx
call fcn.0047a005
mov esi, eax
cmp esi, ebx
je 0x51e390
mov edx, dword [ebp + 0x14]
push 0x2a
pop ecx
push 0x20
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
pop ecx
push 0x30
pop edi
push 7
mov dword [esi + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x44], edx
pop edx
push ebx
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 4], ecx
xor eax, eax
inc eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x58], edi
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x74], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov dword [esi + 8], 0x51e3a4
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x51e3b4
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], 0x51e3b8
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x51e3cc
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], 0x51e3d0
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], 0x51e3ec
mov dword [esi + 0x50], ebx
mov dword [esi + 0x5c], 0x51e3f0
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], 0x51e40c
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x78], 0x51e410
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 0x51e420
mov dword [esi + 0x88], ebx
push dword [ebp - 0x18]
push 0xc0000000
call fcn.00532ffd
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.0047a1e6
push dword [ebp - 0x18]
call fcn.0040c496
cmp dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x10]
jl 0x51e357
cmp dword [ecx + 4], ebx
je 0x51e357
cmp word [ecx], bx
je 0x51e357
mov esi, dword [ebp + 0x14]
mov ax, word [esi]
cmp ax, bx
je 0x51e2f3
cmp ax, 0x4c
jb 0x51e35a
mov eax, dword [ebp + 0x18]
mov ax, word [eax]
cmp ax, bx
je 0x51e304
cmp ax, 0x4c
jb 0x51e35a
cmp word [edi], 2
ja 0x51e315
cmp dword [edi + 4], ebx
je 0x51e315
push edi
call fcn.004abf5e
mov eax, dword [ebp + 0x1c]
cmp word [eax], 2
ja 0x51e329
cmp dword [eax + 4], ebx
je 0x51e329
push eax
call fcn.004abf5e
cmp word [esi], bx
jne 0x51e339
cmp dword [esi + 4], ebx
je 0x51e339
push esi
call fcn.004abf5e
mov eax, dword [ebp + 0x18]
cmp word [eax], bx
jne 0x51e34c
cmp dword [eax + 4], ebx
je 0x51e34c
push eax
call fcn.004abf5e
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x50b321
mov esi, dword [ebp + 0x14]
push ecx
call fcn.004abf5e
push esi
call fcn.004abf5e
push dword [ebp + 0x18]
call fcn.004abf5e
push dword [ebp + 0x1c]
call fcn.004abf5e
push edi
call fcn.004abf5e
mov edi, dword [ebp - 0x24]
jmp 0x50b2e5
mov dword [edi], ebx
jmp 0x50b30b
push dword [ebp - 0x18]
call fcn.0040c496
mov dword [ebp - 4], 0xc000009a
jmp 0x50b321