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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
cmp byte [esi + 0x1d], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
je 0x408eb8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
mov byte [esi + 0x1d], 1
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
cmp dword [esi + 0x6c], edi
je 0x408f40
mov eax, dword [ecx + 0x38]
lea edx, [ecx + 0x34]
cmp edx, eax
je 0x408f40
cmp eax, edi
je 0x408f40
lea ebx, [ebx]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
add ecx, 0x34
sub ecx, edx
neg ecx
sbb ecx, ecx
and ecx, edx
cmp dword [edi + 0x3c], ebx
jne 0x408f35
test dword [edi + 0x44], 0x80000000
jne 0x408f35
mov edi, dword [eax]
test edi, edi
je 0x408f10
mov dword [edx], edi
mov dword [edi + 4], edx
mov dword [eax], 0
cmp dword [eax], 0
lea edx, [esi + 0x24]
jne 0x408f25
mov edi, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [edx + 4], eax
mov dword [edi], eax
or eax, 0xffffffff
add dword [esi + 0x6c], eax
add dword [esi + 0x78], eax
mov dword [ebp - 0xc], 1
mov eax, ecx
test ecx, ecx
mov ecx, dword [ebp - 4]
jne 0x408ee0
xor edi, edi
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x78]
jne 0x408f54
cmp dword [esi + 0x80], edi
je 0x4090aa
mov dword [ebp - 0xc], 1
cmp dword [ecx + 0x48], edi
je 0x408f63
mov dword [ecx + 0x48], edi
mov eax, dword [ecx + 0x44]
lea edi, [ecx + 0x40]
sub edi, eax
neg edi
sbb edi, edi
and edi, eax
test edi, edi
je 0x4090a5
mov ebx, dword [ebp - 4]
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x3c]
add ebx, 0x40
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, eax
cmp ecx, dword [ebp + 8]
jne 0x409084
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x408fa5
cmp dword [ebp + 0x14], ecx
je 0x408fba
cmp dword [esi + 0x18], ecx
jne 0x409084
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [ebp + 0x14]
jne 0x409084
mov ecx, dword [edi]
test ecx, ecx
je 0x408fcb
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [edi], 0
test dword [esi + 0x44], 0x80000000
je 0x409033
mov edx, dword [ebp - 8]
dec dword [edx + 0x80]
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x16
mov ecx, dword [edi + ecx*4 + 0x70]
test ecx, ecx
je 0x409018
mov edi, eax
shr edi, 0xb
and edi, 0x7ff
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x409018
and eax, 0x7ff
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x409018
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x409018
dec ecx
mov dword [eax + 0x60], ecx
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
lea ecx, [edx + 0x3c]
jne 0x409084
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ecx + 4], eax
mov dword [edx], eax
jmp 0x409084
mov edx, dword [ebp + 8]
test dword [edx + 0xbc], 0x400
je 0x409069
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
or byte [esi + 4], 0x60
lea ecx, [esi + 0x10]
push ecx
push edx
mov byte [esi + 5], 0
mov dword [esi], eax
call fcn.00400f20
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004088b0
add esp, 0x10
cmp dword [edi], 0
mov edx, dword [ebp - 8]
lea eax, [edx + 0x24]
jne 0x409081
mov ecx, dword [eax + 4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov dword [ecx], edi
dec dword [edx + 0x78]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
mov esi, dword [ebp - 8]
mov ecx, eax
jne 0x409099
mov edi, ebx
jmp 0x408f71
mov dword [eax + 0x48], 0
jmp 0x408f63
mov ebx, dword [ebp + 8]
xor edi, edi
mov edx, dword [esi + 0x70]
cmp edx, dword [esi + 0x78]
jne 0x4090be
cmp dword [esi + 0x80], edi
je 0x4092bf
cmp dword [ecx + 0x30], edi
je 0x4090c6
mov dword [ecx + 0x30], edi
mov eax, dword [ecx + 0x2c]
lea edi, [ecx + 0x28]
sub edi, eax
neg edi
sbb edi, edi
and edi, eax
test edi, edi
je 0x409208
mov ebx, dword [ebp - 4]
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x3c]
add ebx, 0x28
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, eax
cmp ecx, dword [ebp + 8]
jne 0x4091e7
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x409108
cmp dword [ebp + 0x14], ecx
je 0x40911d
cmp dword [esi + 0x18], ecx
jne 0x4091e7
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [ebp + 0x14]
jne 0x4091e7
mov ecx, dword [edi]
test ecx, ecx
je 0x40912e
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [edi], 0
test dword [esi + 0x44], 0x80000000
je 0x409196
mov edx, dword [ebp - 8]
dec dword [edx + 0x80]
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x16
mov ecx, dword [edi + ecx*4 + 0x70]
test ecx, ecx
je 0x40917b
mov edi, eax
shr edi, 0xb
and edi, 0x7ff
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x40917b
and eax, 0x7ff
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x40917b
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x40917b
dec ecx
mov dword [eax + 0x60], ecx
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
lea ecx, [edx + 0x3c]
jne 0x4091e7
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ecx + 4], eax
mov dword [edx], eax
jmp 0x4091e7
mov edx, dword [ebp + 8]
test dword [edx + 0xbc], 0x400
je 0x4091cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
or byte [esi + 4], 0x60
lea ecx, [esi + 0x10]
push ecx
push edx
mov byte [esi + 5], 0
mov dword [esi], eax
call fcn.00400f20
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004088b0
add esp, 0x10
cmp dword [edi], 0
mov edx, dword [ebp - 8]
lea eax, [edx + 0x24]
jne 0x4091e4
mov ecx, dword [eax + 4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov dword [ecx], edi
dec dword [edx + 0x78]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
mov esi, dword [ebp - 8]
mov ecx, eax
jne 0x4091fc
mov edi, ebx
jmp 0x4090d4
mov dword [eax + 0x30], 0
jmp 0x4090c6
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
cmp eax, edx
jne 0x409223
cmp dword [esi + 0x80], 0
je 0x4092ba
cmp eax, edx
je 0x40922a
mov dword [ebp - 0xc], 0
cmp dword [ecx + 0x54], 0
je 0x409237
mov dword [ecx + 0x54], 0
lea edi, [ecx + 0x4c]
lea ebx, [ebx]
mov ecx, dword [ecx + 0x50]
mov eax, edi
sub eax, ecx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ecx]
test eax, eax
je 0x4092ba
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov esi, edi
sub esi, ecx
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x3c], ecx
jne 0x40929c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x409278
cmp dword [ebp + 0x14], ecx
je 0x409285
cmp dword [eax + 0x18], ecx
jne 0x40929c
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0x14]
jne 0x40929c
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004010a0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
jne 0x4092ac
mov eax, esi
mov esi, dword [ebp - 8]
jmp 0x409250
mov esi, dword [ebp - 8]
mov dword [eax + 0x54], 0
mov ecx, eax
jmp 0x409240
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x4092e9
mov edx, dword [esi + 0x70]
cmp edx, dword [esi + 0x78]
jne 0x4092e9
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push ebx
call eax
add esp, 0xc
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov eax, dword [ebp - 0x14]
pop edi
mov byte [esi + 0x1d], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret