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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b2786
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x5b2760
xor edx, edx
push ebp
push 0x5b2756
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xf4]
mov edx, dword [edx]
call fcn.00405760
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004dc608
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xf4]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
mov edx, 0x5b27a0
call fcn.0040542c
jne 0x5b2398
mov eax, dword [ebp - 0x14]
call fcn.005ef040
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xf4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
movzx eax, byte [eax + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.00505d84
mov ebx, eax
test ebx, ebx
jne 0x5b23f3
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.005af960
mov byte [ebp - 0xd], al
push 1
call fcn.00411ed0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b2760
mov eax, dword [ebx + 0x20]
mov edx, 0x5b27a0
call fcn.0040542c
jne 0x5b2413
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov al, byte [eax + 4]
mov byte [ebx + 0x7c], al
jmp 0x5b2445
mov eax, dword [ebx + 0x20]
mov edx, 0x5b27b0
call fcn.0040542c
jne 0x5b2445
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00590ec8
test al, al
je 0x5b2445
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b2760
mov dx, word [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
call fcn.00506628
test al, al
je 0x5b2462
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b2760
cmp dword [ebx + 0x74], 0
jne 0x5b2473
cmp dword [ebx + 0x70], 0x40000
jbe 0x5b2494
jmp 0x5b2475
jle 0x5b2494
mov dx, word [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
call 0x503400
mov dword [ebp - 0x28], eax
cmp byte [ebp - 5], 0
je 0x5b2499
mov eax, dword [ebp - 0x28]
call fcn.00502940
jmp 0x5b2499
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, 0x90
call fcn.0040bf90
mov edi, eax
mov esi, edi
lea eax, [esi + 0x34]
mov edx, dword [ebx + 0x34]
call fcn.00405064
lea eax, [esi + 0x38]
mov edx, dword [ebx + 0x38]
call fcn.00405064
lea eax, [esi + 0x3c]
mov edx, dword [ebx + 0x3c]
call fcn.00405064
lea eax, [esi + 0x40]
mov edx, dword [ebx + 0x40]
call fcn.00405064
cmp dword [ebx + 0x74], 0
jne 0x5b24e4
cmp dword [ebx + 0x70], 0x40000
jbe 0x5b24f3
jmp 0x5b24e6
jle 0x5b24f3
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [esi + 0x84], eax
jmp 0x5b24fb
xor eax, eax
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x44]
mov edx, dword [ebx + 0x44]
call fcn.00405064
lea eax, [esi + 0x48]
mov edx, dword [ebx + 0x48]
call fcn.00405064
lea eax, [esi + 0x4c]
mov edx, dword [ebx + 0x4c]
call fcn.00405064
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x68]
mov dword [esi + 0x68], eax
lea eax, [esi + 0x50]
mov edx, dword [ebx + 0x50]
call fcn.00405064
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0x14]
mov word [esi + 0x6c], ax
lea eax, [esi + 0x30]
mov edx, dword [ebx + 0x30]
call fcn.00405064
lea eax, [esi + 0x54]
mov edx, dword [ebx + 0x54]
call fcn.00405064
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
mov al, byte [ebx + 0x7c]
mov byte [esi + 0x7c], al
lea eax, [esi + 0x58]
mov edx, dword [ebx + 0x58]
call fcn.00405064
mov eax, dword [ebx + 0x78]
mov dword [esi + 0x78], eax
lea eax, [esi + 0x18]
mov edx, dword [ebx + 0x18]
call fcn.00405064
lea eax, [esi + 0x14]
mov edx, dword [ebx + 0x14]
call fcn.00405064
mov ax, word [ebx + 0x1c]
mov word [esi + 0x1c], ax
lea eax, [esi + 0x5c]
mov edx, dword [ebx + 0x5c]
call fcn.00405064
lea eax, [esi + 0x20]
mov edx, dword [ebx + 0x20]
call fcn.00405064
mov byte [esi + 0x7e], 1
mov byte [esi + 0x7f], 0
mov byte [esi + 0x7d], 0
mov eax, dword [edi + 0x14]
movzx eax, byte [eax]
mov edx, dword [0x6055f0]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x5b25e2
xor eax, eax
mov dword [edi + 0x88], eax
jmp 0x5b25ee
mov edx, dword [0x6055f0]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x14]
movzx eax, byte [eax]
mov edx, dword [0x6055f0]
mov dword [edx + eax*4], edi
mov eax, dword [ebp - 4]
inc word [eax + 0xe4]
cmp byte [ebp - 5], 0
jne 0x5b2619
mov byte [edi + 0x80], 1
jmp 0x5b2748
mov eax, edi
call fcn.00505aec
cmp byte [edi + 0x7e], 0
je 0x5b262a
mov byte [edi + 0x7d], 0
cmp byte [edi + 0x7d], 0
je 0x5b263f
mov eax, dword [ebx + 0x30]
call fcn.004052e0
dec eax
setg al
mov byte [edi + 0x7d], al
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0x14]
mov word [edi + 0x6c], ax
mov eax, dword [ebp - 0xc]
inc word [eax]
cmp byte [edi + 0x7d], 0
je 0x5b265d
mov eax, dword [ebp - 0xc]
inc word [eax + 2]
cmp byte [edi + 0x7c], 1
jne 0x5b2677
cmp byte [edi + 0x7d], 0
je 0x5b2677
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov eax, dword [ebp - 4]
call fcn.005ad118
cmp dword [ebp - 0x24], 5
je 0x5b2683
cmp dword [ebp - 0x24], 7
jne 0x5b26d3
mov eax, dword [edi + 0x3c]
call fcn.0058aa40
test al, al
je 0x5b2695
mov byte [edi + 0x7e], 1
jmp 0x5b26c9
mov eax, dword [edi + 0x30]
call fcn.0058aa40
test al, al
je 0x5b26a7
mov byte [edi + 0x7e], 1
jmp 0x5b26c9
mov eax, dword [edi + 0x50]
call fcn.0058aa40
test al, al
je 0x5b26b9
mov byte [edi + 0x7e], 1
jmp 0x5b26c9
mov eax, dword [edi + 0x38]
call fcn.0058aa40
test al, al
je 0x5b26c9
mov byte [edi + 0x7e], 1
cmp byte [edi + 0x7e], 0
je 0x5b26d3
mov byte [edi + 0x7d], 0
mov byte [edi + 0x80], 0
cmp byte [edi + 0x7d], 0
je 0x5b2748
mov al, byte [edi + 0x7c]
cmp al, 7
jne 0x5b2715
lea edx, [ebp - 0x2c]
mov eax, dword [edi + 0x30]
call fcn.0040c074
mov edx, dword [ebp - 0x2c]
mov eax, 0x5b27c0
call fcn.00405624
test eax, eax
jne 0x5b2748
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, edi
call fcn.0050b1a0
jmp 0x5b2748
cmp al, 1
jne 0x5b2738
mov eax, dword [edi + 0x20]
mov edx, 0x5b27d4
call fcn.00405624
test eax, eax
je 0x5b2738
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b2760
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe8]
mov eax, edi
call fcn.0050b1a0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b2760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b278d
lea eax, [ebp - 0x2c]
call fcn.00405010
lea eax, [ebp - 0x18]
call fcn.00405010
lea eax, [ebp - 0x14]
call fcn.00405700
ret