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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0xfffffffe
jne 0x5816fe
mov al, byte [esi + 0x84]
test al, al
jne 0x5816a1
mov ecx, dword [esi + 0x80]
mov eax, 1
shl eax, cl
lea ecx, [esi + 0x10]
push eax
call fcn.0053cd8a
test al, al
jne 0x58169a
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0xc
ret 4
mov ecx, esi
call fcn.005814e4
push 0x100000
lea ecx, [esi + 0x50]
call fcn.0053bea9
test al, al
jne 0x5816c1
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0xc
ret 4
lea edi, [esi + 0x48]
lea ecx, [edi + 8]
call fcn.0053bf07
xor ebx, ebx
mov dword [edi], 0x10000
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0x10000
mov ebp, 0x10
mov ecx, edi
call fcn.00581ac4
lea ecx, [ebx + ebx]
or eax, ecx
dec ebp
mov ebx, eax
jne 0x5816e3
mov dword [esi + 0x40], ebx
mov dword [esi + 0x78], 0
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x581712
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esi + 0x78]
test eax, eax
jle 0x581768
test edi, edi
jbe 0x581aa1
mov edx, dword [esi + 0x7c]
dec eax
lea ecx, [esi + 0x10]
mov dword [esi + 0x78], eax
mov eax, dword [ecx + 4]
sub eax, edx
mov edx, dword [ecx + 0x10]
dec eax
cmp eax, edx
jb 0x58173a
add eax, edx
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, edx
mov al, byte [edx + eax]
mov byte [ebx + ebp], al
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc ebx
mov eax, ebx
mov dword [ecx + 4], ebx
cmp eax, edx
jne 0x58175c
call fcn.0053ced1
mov eax, dword [esi + 0x78]
dec edi
test eax, eax
jg 0x581719
mov dword [esp + 0x20], edi
test edi, edi
jbe 0x581aa5
mov al, byte [esi + 0x6c]
test al, al
jne 0x581a78
mov eax, dword [esi + 0x40]
lea ebp, [esi + 0x90]
xor ecx, ecx
inc eax
mov cx, word [ebp]
xor edx, edx
imul eax, ecx
dec eax
xor ebx, ebx
div dword [esi + 0x3c]
mov bx, word [esi + 0x92]
lea edx, [esi + 0x92]
mov edi, 1
cmp ebx, eax
jbe 0x5817b9
add edx, 2
xor ebx, ebx
inc edi
mov bx, word [edx]
cmp ebx, eax
ja 0x5817ac
push ecx
xor ecx, ecx
mov cx, word [esi + edi*2 + 0x8e]
xor edx, edx
mov dx, word [esi + edi*2 + 0x90]
push ecx
push edx
lea ecx, [esi + 0x38]
call fcn.00581b14
dec edi
xor ebx, ebx
mov bl, byte [edi + esi + 0x112]
lea eax, [esi + edi*2 + 0x90]
mov dword [esp + 0x10], ebx
add word [eax], 8
mov ecx, edi
dec edi
sub eax, 2
test ecx, ecx
jne 0x5817ed
cmp word [ebp], 0xed8
jbe 0x581914
mov eax, dword [esi + 0x8c]
dec eax
mov dword [esi + 0x8c], eax
jne 0x5818e9
mov eax, dword [esi + 0x88]
mov dword [esi + 0x8c], 0x32
test eax, eax
jbe 0x581852
mov eax, ebp
xor edx, edx
xor edi, edi
mov dx, word [eax + 2]
mov di, word [eax]
sub edi, edx
add eax, 2
inc edi
sar edi, 1
mov word [eax - 2], di
mov edx, dword [esi + 0x88]
inc ecx
cmp ecx, edx
jb 0x581830
mov edx, dword [esi + 0x88]
xor eax, eax
lea ecx, [edx - 1]
test ecx, ecx
jbe 0x5818cf
lea ecx, [eax + 1]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jae 0x5818bd
lea edi, [ebp + 2]
mov dx, word [ebp]
mov bx, word [edi]
cmp dx, bx
mov dword [esp + 0x14], edx
jae 0x5818a7
mov dl, byte [esi + eax + 0x112]
mov word [ebp], bx
mov bl, byte [esi + ecx + 0x112]
mov byte [esi + eax + 0x112], bl
mov bx, word [esp + 0x14]
mov word [edi], bx
mov byte [esi + ecx + 0x112], dl
mov edx, dword [esi + 0x88]
inc ecx
add edi, 2
cmp ecx, edx
jb 0x58186f
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x88]
mov eax, ecx
add ebp, 2
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x581861
lea ecx, [esi + eax*2 + 0x90]
mov dx, word [ecx + 2]
add word [ecx], dx
mov edx, eax
dec eax
sub ecx, 2
test edx, edx
jne 0x5818d6
jmp 0x581914
mov ecx, dword [esi + 0x88]
dec ecx
lea eax, [esi + ecx*2 + 0x90]
shr word [eax], 1
mov di, word [eax]
mov dx, word [eax + 2]
cmp di, dx
ja 0x58190a
inc edx
mov word [eax], dx
mov edx, ecx
dec ecx
sub eax, 2
test edx, edx
jne 0x5818f7
cmp ebx, 4
jae 0x581962
lea eax, [esi + 0x38]
push eax
mov eax, ebx
shl eax, 4
add eax, ebx
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x154]
call fcn.00581bf4
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
lea ecx, [esi + 0x10]
shl bl, 6
add al, bl
mov byte [edx + edi], al
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc edi
mov eax, edi
mov dword [ecx + 4], edi
cmp eax, edx
jne 0x581959
call fcn.0053ced1
dec dword [esp + 0x20]
jmp 0x581a58
add ebx, 0xfffffffc
cmp ebx, 2
mov dword [esp + 0x18], ebx
lea edi, [ebx + 3]
mov dword [esp + 0x10], edi
jne 0x5819da
lea eax, [esi + 0x38]
lea ecx, [esi + 0x6e8]
push eax
call fcn.00581bf4
cmp eax, 6
jb 0x5819ce
sub eax, ebx
mov ecx, eax
and eax, 3
shr ecx, 2
or al, 4
shl eax, cl
cmp ecx, 6
lea eax, [edi + eax - 2]
mov dword [esp + 0x10], eax
jge 0x5819d6
mov ebp, ecx
xor edi, edi
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.00581ac4
lea ecx, [edi + edi]
or eax, ecx
dec ebp
mov edi, eax
jne 0x5819ab
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x5819da
add edi, eax
mov dword [esp + 0x10], edi
jmp 0x5819da
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x38]
push eax
mov eax, ebx
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
lea ecx, [esi + edx*4 + 0x484]
call fcn.00581bf4
mov ebp, eax
cmp ebp, 4
jb 0x581a30
mov edi, ebp
shr edi, 1
dec edi
xor ebx, ebx
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x48]
call fcn.00581ac4
lea ecx, [ebx + ebx]
or eax, ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x581a06
and ebp, 1
mov ecx, edi
mov edi, dword [esp + 0x10]
or ebp, 2
shl ebp, cl
add ebp, ebx
mov eax, dword [esp + 0x20]
mov ebx, edi
cmp edi, eax
jbe 0x581a3c
mov ebx, eax
push ebx
push ebp
lea ecx, [esi + 0x10]
call fcn.00578cc4
test al, al
je 0x581a78
mov ecx, dword [esp + 0x20]
sub ecx, ebx
sub edi, ebx
mov dword [esp + 0x20], ecx
jne 0x581a87
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x581770
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ebp
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4
mov dword [esp + 0x20], edi
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4