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

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
push esi
mov esi, edx
push edi
test eax, eax
je 0x5aea19
test esi, esi
je 0x5aea19
cmp dword [esp + 0xa8], ebx
je 0x5aea19
cmp dword [esp + 0xac], ebx
je 0x5aea19
mov ebp, dword [esp + 0xb0]
test ebp, ebp
je 0x5aea19
mov edi, dword [esp + 0xb8]
test edi, edi
je 0x5aea19
mov ecx, pe_nt_image_headers32
call fcn.005b30a8
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5ae484
push 0xfffffffffffffffe
pop eax
jmp 0x5aea1e
mov ecx, pe_nt_image_headers32
call fcn.005b30a8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x5ae4a1
mov ecx, dword [esp + 0x34]
call fcn.005b30bd
jmp 0x5ae47c
push pe_nt_image_headers32
push ebx
push dword [esp + 0x3c]
call fcn.005b7039
add esp, 0xc
push pe_nt_image_headers32
push ebx
push dword [esp + 0x40]
call fcn.005b7039
add esp, 0xc
lea eax, [esp + 0x60]
push 0x40
push ebx
push eax
call fcn.005b7039
add esp, 0xc
mov ecx, esi
call fcn.005af95a
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x3c], eax
call fcn.005af95a
mov ecx, dword [esp + 0x3c]
mov edx, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
cmova edx, ecx
mov dword [esp + 0x3c], edx
cmp ecx, 0x100
ja 0x5ae9d4
cmp eax, 0x100
ja 0x5ae9d4
sub edx, ecx
mov ecx, esi
add edx, dword [esp + 0x34]
call fcn.005af9f2
mov esi, eax
test esi, esi
jne 0x5ae9d9
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xac]
call fcn.005af9f2
mov esi, eax
test esi, esi
jne 0x5ae9d9
mov esi, ebx
call fcn.005ad8bb
mov dword [esp + esi*4 + 0x60], eax
test eax, eax
je 0x5ae9cf
inc esi
cmp esi, 0x10
jl 0x5ae551
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.005b1609
mov esi, eax
test esi, esi
jne 0x5ae9d9
lea ecx, [esp + 0x44]
call fcn.005af8cb
mov esi, eax
test esi, esi
jne 0x5ae9d9
mov edx, edi
call fcn.005b23fe
mov esi, eax
test esi, esi
jne 0x5ae666
push dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x48]
push edi
call fcn.005b1c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ae666
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x18]
add eax, 0x10
push eax
push edi
lea ecx, [ecx + 0x10]
call fcn.005b1c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ae666
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x18]
add eax, 0x20
push eax
push edi
lea ecx, [ecx + 0x20]
call fcn.005b1c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ae666
push dword [esp + 0x70]
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x48]
push edi
call fcn.005b1c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ae666
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0xa8]
add eax, 0x10
push eax
push edi
lea ecx, [ecx + 0x10]
call fcn.005b1c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ae666
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0xa8]
add eax, 0x20
push eax
push edi
lea ecx, [ecx + 0x20]
call fcn.005b1c1e
pop ecx
pop ecx
mov esi, eax
lea ecx, [esp + 0x44]
call fcn.005af8e1
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
push edi
push ecx
mov ecx, dword [esp + 0x70]
call fcn.005acb2f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
push edi
push ecx
push dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
call fcn.005ac5a2
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, dword [esp + 0x84]
push edi
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.005acb2f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, dword [esp + 0x84]
push edi
push ecx
push dword [esp + 0x9c]
mov ecx, dword [esp + 0x80]
call fcn.005ac5a2
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5ae9d9
push 3
xor ebp, ebp
pop ecx
inc ebp
mov dword [esp + 0x40], ecx
lea ebx, [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov eax, ebx
lea eax, [eax + ebp*4]
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x5ae74a
push dword [esp + 0x14]
mov edx, dword [ebx]
push edi
push ecx
push dword [eax]
mov ecx, dword [esp + ebp*4 + 0x70]
call fcn.005ac5a2
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
add eax, 0x10
add ebx, 0x10
sub ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
jne 0x5ae726
inc ebp
push 3
pop ecx
cmp ebp, 4
jl 0x5ae715
push 0
pop ebx
test esi, esi
jne 0x5ae9d9
mov eax, dword [esp + 0x34]
xor edx, edx
inc edx
mov dword [esp + 0x2c], ebx
movzx ecx, byte [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], eax
movzx ebp, byte [ecx]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, 4
jne 0x5ae7e4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], eax
je 0x5ae9b9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
inc dword [esp + 0x2c]
inc dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
movzx eax, byte [eax + ecx]
movzx ecx, byte [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
jmp 0x5ae7ec
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x20], edi
and edi, 0x3f
shr dword [esp + 0x20], 6
shl edi, 2
mov dword [esp + 0x18], edi
mov edi, ebp
and edi, 0x3f
mov dword [esp + 0x24], ebp
shr dword [esp + 0x24], 6
mov ebp, dword [esp + 0xb0]
shl edi, 2
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
cmp eax, 0x40
jae 0x5ae845
cmp ecx, 0x40
jae 0x5ae845
cmp edx, 1
je 0x5ae7a3
test edx, edx
jne 0x5ae885
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, ebp
push edi
push ecx
mov ecx, ebp
call fcn.005acb2f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, ebp
push edi
push ecx
mov ecx, ebp
call fcn.005acb2f
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x58], 0x40
jae 0x5ae897
cmp dword [esp + 0x5c], 0x40
jb 0x5ae7a3
cmp edx, 1
jne 0x5ae90a
mov dword [esp + 0x28], ebx
test esi, esi
jne 0x5ae9d9
mov ecx, dword [esp + 0x24]
mov edx, ebp
mov eax, dword [esp + 0x20]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + eax*4 + 0x60]
call fcn.005afa61
mov esi, eax
test esi, esi
jne 0x5ae9d9
mov eax, dword [esp + 0x20]
lea edx, [ebp + 0x10]
mov esi, dword [esp + 0x24]
lea ecx, [eax + esi*4]
mov ecx, dword [esp + ecx*4 + 0x60]
add ecx, 0x10
call fcn.005afa61
mov esi, eax
test esi, esi
jne 0x5ae9d9
mov ecx, dword [esp + 0x20]
lea edx, [ebp + 0x20]
mov esi, dword [esp + 0x24]
lea eax, [ecx + esi*4]
mov ecx, dword [esp + eax*4 + 0x60]
add ecx, 0x20
call fcn.005afa61
mov esi, eax
jmp 0x5ae978
test esi, esi
jne 0x5ae9d9
mov ecx, dword [esp + 0x24]
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push edi
push ecx
push ebp
lea eax, [eax + ecx*4]
mov ecx, ebp
mov edx, dword [esp + eax*4 + 0x70]
call fcn.005ac5a2
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5ae9d9
mov edx, dword [esp + 0x28]
cmp dword [ebp + 0x20], ebx
jne 0x5ae7a3
cmp dword [ebp], ebx
jne 0x5ae981
cmp dword [ebp + 0x10], ebx
jne 0x5ae981
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edx, ebp
mov esi, dword [esp + 0x28]
push edi
push ecx
lea ecx, [eax + esi*4]
mov ecx, dword [esp + ecx*4 + 0x6c]
call fcn.005acb2f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5ae9d9
mov edx, dword [esp + 0x28]
jmp 0x5ae7a3
xor edx, edx
mov ecx, ebp
call fcn.005b08c2
mov esi, eax
test esi, esi
jne 0x5ae9d9
lea ecx, [ebp + 0x10]
xor edx, edx
call fcn.005b08c2
mov esi, eax
test esi, esi
jne 0x5ae9d9
xor edx, edx
lea ecx, [ebp + 0x20]
inc edx
call fcn.005b08c2
mov esi, eax
test esi, esi
jne 0x5ae9d9
xor edx, edx
inc edx
jmp 0x5ae79f
test esi, esi
jne 0x5ae9d9
push dword [esp + 0x14]
mov edx, edi
mov ecx, ebp
call fcn.005acfef
pop ecx
mov esi, eax
jmp 0x5ae9d9
push 0xfffffffffffffffe
pop esi
jmp 0x5ae9d9
mov esi, 0xffffff53
mov ecx, dword [esp + ebx*4 + 0x60]
call fcn.005ad900
inc ebx
cmp ebx, 0x10
jl 0x5ae9d9
mov ecx, dword [esp + 0x34]
mov eax, pe_nt_image_headers32
mov edx, eax
call fcn.005ac3b7
mov ecx, dword [esp + 0x38]
mov edx, eax
call fcn.005ac3b7
mov ecx, dword [esp + 0x38]
call fcn.005b30bd
mov ecx, dword [esp + 0x34]
call fcn.005b30bd
mov eax, esi
jmp 0x5aea1e
mov eax, 0xffffff56
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret