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

Disassembly:
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xb4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xb4]
push esi
push edi
lea esi, [esp + 0x18]
mov edi, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x10027976
cmp dword [esp + 0x1c], 0
jne 0x10027976
lea esi, [esp + 0x38]
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x3c]
mov edi, ebx
je 0x10027961
lea esi, [esp + 0x50]
call fcn.100261b0
test eax, eax
jne 0x10028359
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x10028354
mov ecx, dword [esp + 0x50]
jb 0x10027942
cmp ecx, eax
ja 0x10028354
add dword [ebx], ecx
sub eax, ecx
lea esi, [esp + 0x38]
mov dword [ebx + 4], eax
call fcn.100261b0
test eax, eax
je 0x10027906
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
lea esi, [esp + 0x18]
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x18]
cmp eax, 3
jne 0x10027a5b
cmp dword [esp + 0x1c], 0
jne 0x10027a5b
mov edi, dword [esp + 0xd4]
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0xc8]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x34]
push edi
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edx
push ebx
push eax
lea eax, [esp + 0xa4]
mov edx, 8
call fcn.10027590
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xe4]
add esp, 0x18
lea esi, [esp + 0x8c]
mov dword [esp + 0x34], eax
mov dword [edx], ecx
call fcn.10026010
cmp dword [esp + 0x34], 0
je 0x10027a44
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x10027acd
cmp dword [esp + 0x1c], 0
jne 0x10027acd
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xcc]
lea esi, [ebp + 0x38]
push esi
push edx
push eax
mov eax, dword [esp + 0xd0]
push 0x40000000
push ebp
lea ebx, [esp + 0x78]
call fcn.10027470
add esp, 0x18
test eax, eax
jne 0x10028359
mov ecx, dword [ebp + 0x30]
add dword [esi], ecx
mov edx, dword [ebp + 0x34]
mov edi, dword [esp + 0xc0]
adc dword [esi + 4], edx
lea esi, [esp + 0x18]
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x10027ae4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
cmp eax, 5
jne 0x10028354
xor eax, eax
cmp ecx, eax
jne 0x10028354
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x2c]
call fcn.100262b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc0]
lea esi, [esp + 0x18]
mov edi, ebx
mov dword [ebp + 0x40], eax
call fcn.100261b0
test eax, eax
jne 0x10028359
mov ecx, dword [esp + 0x18]
or ecx, dword [esp + 0x1c]
je 0x10027e1c
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.100261b0
test eax, eax
jne 0x10028359
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x10028354
mov esi, dword [esp + 0x38]
jb 0x10027b80
cmp esi, eax
ja 0x10028354
cmp dword [esp + 0x1c], ecx
ja case.0x10027ba6.16
mov ecx, dword [esp + 0x18]
cmp ecx, 0x100
jae case.0x10027ba6.16
add ecx, 0xfffffff2
cmp ecx, 7
ja case.0x10027ba6.16
jmp dword [ecx*4 + 0x10028374]
test eax, eax
je 0x10028354
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x17], cl
mov dword [ebx], eax
test cl, cl
jne 0x10027bd1
dec esi
mov dword [esp + 0x24], esi
mov edi, eax
jmp 0x10027c15
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x50]
call fcn.100262b0
test eax, eax
jne 0x10028359
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xcc]
cmp ecx, dword [eax]
jae 0x10028354
mov eax, dword [esp + 0xc8]
mov edi, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x24], ecx
test byte [esp + 0x24], 1
jne 0x10028354
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0xd0]
mov ecx, dword [esi]
lea eax, [edx*4 + 4]
push eax
push esi
call ecx
add esp, 8
mov dword [ebp + 0x74], eax
test eax, eax
je 0x10028364
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x10027c52
xor ebp, ebp
jmp 0x10027c79
push edx
mov edx, dword [esi]
push esi
call edx
add esp, 8
mov dword [ebp + 0x78], eax
test eax, eax
je 0x10028364
mov ecx, dword [esp + 0x24]
push ecx
push edi
push eax
call fcn.100683a0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [ebp + 0x74]
mov eax, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [ebp + 0x78]
call fcn.100276d0
test eax, eax
jne 0x10028359
cmp byte [esp + 0x17], al
jne 0x10027dfe
mov eax, dword [esp + 0x24]
sub dword [ebx + 4], eax
add dword [ebx], eax
jmp 0x10027dfe
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x44]
mov eax, esi
mov edx, ebx
call fcn.10026410
test eax, eax
jne 0x10028359
mov ecx, dword [esp + 0x44]
mov eax, esi
call fcn.10026440
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], 0
jmp 0x10027dfe
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x5c]
mov edx, ebx
call fcn.10026410
test eax, eax
jne 0x10028359
jmp 0x10027dfe
mov esi, dword [esp + 0xd0]
lea edi, [ebp + 0x54]
call fcn.10025fb0
mov eax, dword [esp + 0x2c]
mov edx, esi
push edx
push edi
mov ecx, ebx
call fcn.10026480
add esp, 8
test eax, eax
jne 0x10028359
mov eax, dword [ebx + 4]
test eax, eax
je 0x10028354
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov dword [ebx], eax
test cl, cl
jne 0x10027d42
mov eax, ebx
jmp 0x10027d8e
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x34]
call fcn.100262b0
test eax, eax
jne 0x10028359
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xcc]
cmp ecx, dword [eax]
jae 0x10028354
mov eax, dword [esp + 0xc8]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
mov eax, esi
mov ecx, edi
call fcn.10026550
add esp, 8
test eax, eax
jne 0x10028359
jmp 0x10027dfe
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x5c]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x34]
push edx
push ebx
push eax
push ecx
call fcn.10027740
add esp, 0x18
test eax, eax
jne 0x10028359
jmp 0x10027dfe
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x64]
jmp 0x10027dbf
sub eax, esi
add dword [ebx], esi
mov dword [ebx + 4], eax
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.100261b0
test eax, eax
je 0x10027b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x60]
jne 0x10028354
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.100261b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x3c]
je 0x10027e74
mov eax, ebx
call fcn.10026330
test eax, eax
jne 0x10028359
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.100261b0
test eax, eax
je 0x10027e41
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0xd0]
mov eax, dword [esi]
xor edi, edi
lea edx, [ecx*4 + 4]
push edx
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1c], 0x80
call eax
add esp, 8
mov dword [ebp + 0x6c], eax
cmp eax, edi
je 0x10028364
mov eax, dword [ebp + 0x40]
cmp eax, edi
jne 0x10027edb
mov dword [ebp + 0x70], edi
jmp 0x10027ef6
mov edx, dword [esi]
lea ecx, [eax*4]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x70], eax
cmp eax, edi
je 0x10028364
mov eax, dword [ebp + 0x40]
mov edx, dword [esi]
lea ecx, [eax*8 + 8]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x44], eax
cmp eax, edi
je 0x10028364
mov eax, dword [ebp + 0x40]
add eax, 7
shr eax, 3
cmp eax, edi
jne 0x10027f26
mov dword [ebp + 0x48], edi
jmp 0x10027f3a
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 8
mov dword [ebp + 0x48], eax
cmp eax, edi
je 0x10028364
mov edi, dword [ebp + 0x40]
lea ebx, [ebp + 0x4c]
call fcn.10025f60
test eax, eax
jne 0x10028359
cmp dword [esp + 0x7c], eax
je 0x10027f84
mov eax, dword [esp + 0x78]
mov cl, byte [eax]
dec dword [esp + 0x7c]
inc eax
mov byte [esp + 0x17], cl
mov dword [esp + 0x78], eax
test cl, cl
je 0x10027f70
mov dword [esp + 0x30], eax
jmp 0x10027f84
mov ecx, dword [esp + 0x64]
add ecx, 7
shr ecx, 3
add ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jbe 0x100282e4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
nop
cmp byte [esp + 0x14], 0
mov eax, dword [esp + 0x28]
jne 0x10027fd8
movzx ecx, byte [esp + 0x16]
mov edx, dword [ebp + 0x48]
dec eax
shr eax, 3
mov byte [eax + edx], cl
movzx ecx, byte [esp + 0x15]
mov edx, dword [ebp + 0x4c]
mov byte [eax + edx], cl
mov eax, dword [esp + 0x28]
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x14], 0x80
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [ebp + 0x50]
mov dword [ecx + eax*4], 0
test esi, esi
je 0x10028069
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + esi]
test cl, dl
je 0x10028069
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x10028047
mov esi, dword [esp + 0x50]
mov ecx, esi
and ecx, 7
mov ebx, 0x80
sar ebx, cl
mov ecx, esi
shr ecx, 3
mov dl, byte [ecx + edx]
test dl, bl
jne 0x10028040
mov cl, byte [esp + 0x14]
or byte [esp + 0x16], cl
inc esi
mov dword [esp + 0x50], esi
jmp 0x1002804f
mov dl, byte [esp + 0x14]
or byte [esp + 0x16], dl
cmp dword [esp + 0x40], 0
jne 0x100280ff
mov ecx, dword [ebp + 0x70]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x100282ac
cmp dword [esp + 0x40], 0
jne 0x100280ff
mov esi, dword [esp + 0x24]
jmp 0x10028080
cmp esi, dword [ebp + 4]
jae 0x10028354
cmp dword [esp + 0x68], 0
mov edx, dword [ebp + 0x6c]
mov dword [edx + esi*4], eax
mov dword [esp + 0x48], 1
je 0x100280b3
lea ebx, [esp + 0x48]
lea eax, [esp + 0x68]
call fcn.100262b0
test eax, eax
jne 0x10028359
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x10028103
mov eax, dword [ebp + 0x20]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp + 0x1c]
add eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + eax*8]
add dword [esp + 0x18], edx
mov eax, dword [ecx + eax*8 + 4]
adc edi, eax
mov dword [esp + 0x1c], edi
cmp edi, eax
jb 0x10028354
ja 0x100280f4
cmp dword [esp + 0x18], edx
jb 0x10028354
mov eax, dword [esp + 0x28]
inc esi
mov dword [esp + 0x24], esi
jmp 0x10028080
mov esi, dword [esp + 0x24]
mov edx, dword [ebp + 0x70]
mov eax, dword [esp + 0x28]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x44]
test edx, edx
je 0x10028137
mov ecx, eax
and ecx, 7
mov ebx, 0x80
sar ebx, cl
shr eax, 3
mov al, byte [eax + edx]
test al, bl
jne 0x100282ac
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
sub dword [esp + 0x40], 1
mov ebx, dword [esp + 0x18]
jne 0x10028231
mov ecx, dword [ebp + 0x20]
movzx eax, byte [ecx + esi]
mov edx, dword [ebp + 0x1c]
add eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [ebp + 0x6c]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
sub ebx, ecx
sbb edi, edx
cmp dword [esp + 0x3c], edi
jb 0x10028354
mov edi, dword [esp + 0x38]
ja 0x10028191
cmp edi, ebx
jb 0x10028354
mov eax, dword [esp + 0x3c]
add ecx, edi
adc edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp edx, eax
jb 0x10028354
ja 0x100281b3
cmp ecx, edi
jb 0x10028354
cmp dword [esp + 0x48], 1
mov eax, dword [esp + 0x28]
jne 0x100281fb
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100281fb
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + edi]
test cl, dl
je 0x100281fb
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp + 0x50]
mov dword [ecx + eax*4], edx
mov al, byte [esp + 0x14]
or byte [esp + 0x15], al
inc esi
mov dword [esp + 0x24], esi
jmp 0x100282ac
cmp byte [esp + 0x17], 0
jne 0x1002820f
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1002822a
test byte [ecx], 0x80
je 0x1002822a
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx]
mov edx, dword [ebp + 0x50]
mov dword [edx + eax*4], edi
mov al, byte [esp + 0x14]
add ecx, 4
or byte [esp + 0x15], al
mov dword [esp + 0x30], ecx
inc esi
mov dword [esp + 0x24], esi
jmp 0x100282ac
lea esi, [esp + 0x80]
lea edi, [esp + 0x70]
call fcn.100261b0
test eax, eax
jne 0x10028359
mov edx, dword [esp + 0x80]
add dword [esp + 0x18], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
adc ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jb 0x10028354
ja 0x10028279
cmp dword [esp + 0x18], edx
jb 0x10028354
cmp byte [esp + 0x17], 0
jne 0x1002828d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100282ac
test byte [eax], 0x80
je 0x100282ac
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x50]
mov esi, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x14]
or byte [esp + 0x15], al
mov dword [ecx + esi*4], edx
mov eax, dword [esp + 0x28]
shr byte [esp + 0x14], 1
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jb 0x10027fa0
cmp byte [esp + 0x14], 0x80
je 0x100282e4
movzx edx, byte [esp + 0x16]
mov ecx, dword [ebp + 0x48]
dec eax
shr eax, 3
mov byte [eax + ecx], dl
movzx edx, byte [esp + 0x15]
mov ecx, dword [ebp + 0x4c]
mov byte [eax + ecx], dl
cmp dword [esp + 0x40], 0
mov eax, dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*8 + 4], edx
jne 0x10028354
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x6c]
mov dword [edx + eax*4], ecx
cmp eax, dword [ebp + 4]
jae 0x1002833e
mov esi, eax
mov edi, ecx
cmp dword [esp + 0x68], 0
je 0x10028354
lea ebx, [esp + 0x48]
lea eax, [esp + 0x68]
call fcn.100262b0
test eax, eax
jne 0x10028359
cmp dword [esp + 0x48], eax
jne 0x10028354
mov eax, dword [ebp + 0x6c]
inc esi
mov dword [eax + esi*4], edi
cmp esi, dword [ebp + 4]
jb 0x10028314
cmp dword [esp + 0x68], 0
je 0x10027ad7
cmp dword [esp + 0x6c], 0
je 0x10027ad7
mov eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xa8
ret