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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, eax
call fcn.004b8e19
test al, al
jne 0x5823c7
xor al, al
jmp 0x5828a5
xor ebx, ebx
cmp dword [edi], ebx
jne 0x5823c0
mov eax, dword [esi]
cmp eax, 8
je 0x5823d9
cmp eax, 9
jne 0x5823c0
mov eax, edi
push ebx
lea edi, [esp + 0x5c]
call fcn.004b8aab
push esi
lea eax, [esp + 0x70]
push eax
call fcn.00448cc3
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x58240d
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
jmp 0x582450
mov eax, esi
call fcn.004b75a8
mov dword [esp + 0x38], eax
mov eax, esi
call fcn.004b75a8
mov ebx, eax
test ebx, ebx
je 0x582439
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b7929
dec edi
imul eax, edi
add eax, ebx
mov dword [esp + 0x3c], eax
call fcn.004b7929
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
xor ebx, ebx
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x58246d
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
jmp 0x5824b0
mov eax, esi
call fcn.004b75ff
mov dword [esp + 0x48], eax
mov eax, esi
call fcn.004b75ff
mov ebx, eax
test ebx, ebx
je 0x582499
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b794a
dec edi
imul eax, edi
add eax, ebx
mov dword [esp + 0x4c], eax
call fcn.004b794a
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x58272a
lea ecx, [esp + 0x58]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x6c]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x38]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x48]
call fcn.00448cdf
test al, al
je 0x5823c0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x60]
mov ebx, eax
add eax, dword [esp + 0x78]
mov esi, edi
add edi, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
mov dword [esp + 0x60], edi
jl 0x582676
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x34], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x30], eax
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx ecx, cl
push edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004bd139
mov byte [ebx], al
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
add dword [esp + 0x14], edx
mov eax, ecx
shr eax, 8
movzx eax, al
add dword [esp + 0xc], eax
movzx ecx, cl
add dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.004bd139
mov byte [ebx + 1], al
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x10
movzx edx, al
add dword [esp + 0x14], edx
mov eax, ecx
shr eax, 8
movzx eax, al
add dword [esp + 0xc], eax
movzx ecx, cl
add dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.004bd139
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
add dword [esp + 0x14], edx
mov eax, ecx
shr eax, 8
movzx eax, al
add dword [esp + 0xc], eax
movzx ecx, cl
add dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.004bd139
push dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 2
mov byte [ecx + 1], al
pop ecx
call fcn.004bd15b
push dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push 2
mov byte [ecx], al
pop ecx
call fcn.004bd192
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x24]
mov byte [ecx], al
inc dword [esp + 0x28]
add dword [esp + 0x20], 2
add esi, 8
add edi, 8
inc ebx
inc ebx
dec dword [esp + 0x34]
jne 0x582557
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5826f8
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x10
movzx esi, al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx ecx, cl
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004bd139
mov byte [ebx], al
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
add dword [esp + 0xc], eax
movzx ecx, cl
add dword [esp + 0x10], ecx
push edx
add esi, edx
call fcn.004bd139
mov ecx, dword [esp + 0x20]
push dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov byte [ecx], al
xor ecx, ecx
push esi
inc ecx
call fcn.004bd15b
mov ecx, dword [esp + 0x24]
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov byte [ecx], al
xor ecx, ecx
push esi
inc ecx
call fcn.004bd192
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
mov eax, dword [esp + 0x64]
add dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x44]
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
sub dword [esp + 0x2c], 2
add dword [esp + 0x50], eax
cmp dword [esp + 0x2c], 2
jge 0x5824c3
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
je 0x5828a3
lea ecx, [esp + 0x58]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x6c]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x38]
call fcn.00448cdf
test al, al
je 0x5823c0
lea ecx, [esp + 0x48]
call fcn.00448cdf
test al, al
je 0x5823c0
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x582850
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x34], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x30], eax
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx ecx, cl
push edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004bd139
mov byte [edi], al
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
add dword [esp + 0x14], edx
mov eax, ecx
shr eax, 8
movzx eax, al
add dword [esp + 0xc], eax
movzx ecx, cl
add dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.004bd139
push dword [esp + 0x10]
mov edx, dword [esp + 0x10]
push dword [esp + 0x18]
xor ecx, ecx
inc ecx
mov byte [edi + 1], al
call fcn.004bd15b
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push dword [esp + 0x18]
xor ecx, ecx
inc ecx
mov byte [ebx], al
call fcn.004bd192
mov ecx, dword [esp + 0x2c]
inc ebx
inc dword [esp + 0x2c]
add esi, 8
inc edi
inc edi
dec dword [esp + 0x34]
mov byte [ecx], al
jne 0x5827ac
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5828a3
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x10
movzx esi, cl
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
push esi
mov eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
call fcn.004bd139
push dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push esi
xor ecx, ecx
mov byte [edi], al
call fcn.004bd15b
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push esi
xor ecx, ecx
mov byte [ebx], al
call fcn.004bd192
mov ecx, dword [esp + 0x2c]
mov byte [ecx], al
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4