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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov eax, dword [eax + 0x80]
test eax, eax
je 0x412c56
sar eax, 1
je 0x412e29
xor esi, esi
lea esi, [esi]
inc esi
sar eax, 1
jne 0x412b1c
cmp esi, 0xe
jg 0x412dcf
mov eax, esi
shl eax, 4
mov edx, dword [ebx + 0x7c]
cmp byte [ebx + 0x6c], 0
je 0x412c60
mov ecx, dword [ebx + edx*4 + 0x5c]
lea eax, [ecx + eax*4]
inc dword [eax]
mov al, byte [ebx + 0x6c]
test esi, esi
jne 0x412d2a
mov dword [ebx + 0x80], 0
mov edx, dword [ebx + 0x84]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x1c], edx
test al, al
jne 0x412c4c
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x412c4c
nop
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x412c30
mov esi, 1
and esi, edx
lea edi, [ebp + 1]
mov ecx, 0x17
sub ecx, ebp
shl esi, cl
or esi, dword [ebx + 0xc]
cmp edi, 7
jg 0x412bc7
jmp 0x412c2a
cmp edx, 0xff
je 0x412bfd
shl esi, 8
sub edi, 8
cmp edi, 7
jle 0x412c24
mov edx, esi
sar edx, 0x10
and edx, 0xff
mov eax, dword [ebx + 0x70]
mov byte [eax], dl
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412bb4
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00412150
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412bbc
mov eax, dword [ebx + 0x70]
mov byte [eax], 0
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412bbc
mov eax, ebx
call fcn.00412150
shl esi, 8
sub edi, 8
cmp edi, 7
jg 0x412bc7
lea edi, [ebp - 7]
and edi, 7
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], edi
dec dword [esp + 0x18]
je 0x412c4c
inc dword [esp + 0x1c]
mov al, byte [ebx + 0x6c]
jmp 0x412b84
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + edx*4 + 0x3c]
movsx ecx, byte [edx + eax + 0x400]
mov ebp, dword [edx + eax*4]
mov edx, dword [ebx + 0x10]
test ecx, ecx
je 0x412de5
mov edi, 1
shl edi, cl
dec edi
and edi, ebp
add edx, ecx
mov dword [esp + 0x18], edx
mov ecx, 0x18
sub ecx, edx
shl edi, cl
or edi, dword [ebx + 0xc]
cmp edx, 7
jle 0x412d15
mov ebp, edx
jmp 0x412cb3
cmp edx, 0xff
je 0x412ce9
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412d10
mov edx, edi
sar edx, 0x10
and edx, 0xff
mov eax, dword [ebx + 0x70]
mov byte [eax], dl
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412ca0
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00412150
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412ca8
mov eax, dword [ebx + 0x70]
mov byte [eax], 0
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412ca8
mov eax, ebx
call fcn.00412150
shl edi, 8
sub ebp, 8
cmp ebp, 7
jg 0x412cb3
and dword [esp + 0x18], 7
mov dword [ebx + 0xc], edi
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x10], edx
mov al, byte [ebx + 0x6c]
test esi, esi
je 0x412b50
mov edx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x412c42
mov edi, 1
mov ecx, esi
shl edi, cl
dec edi
and edi, edx
add esi, ebp
mov ecx, 0x18
sub ecx, esi
shl edi, cl
or edi, dword [ebx + 0xc]
cmp esi, 7
jle 0x412e1e
mov ebp, esi
jmp 0x412d7b
cmp edx, 0xff
je 0x412db1
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412e18
mov edx, edi
sar edx, 0x10
and edx, 0xff
mov eax, dword [ebx + 0x70]
mov byte [eax], dl
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412d64
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00412150
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412d6c
mov eax, dword [ebx + 0x70]
mov byte [eax], 0
inc eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x74]
dec eax
mov dword [ebx + 0x74], eax
test eax, eax
jne 0x412d6c
mov eax, ebx
call fcn.00412150
jmp 0x412d6c
mov edx, dword [ebx + 0x78]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x29
mov dword [esp], edx
call dword [eax]
jmp 0x412b2a
mov edi, dword [ebx + 0x78]
mov eax, dword [edi]
mov dword [eax + 0x14], 0x29
mov dword [esp], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call dword [eax]
mov al, byte [ebx + 0x6c]
test al, al
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jne 0x412b48
jmp 0x412c7a
and esi, 7
mov al, byte [ebx + 0x6c]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], esi
jmp 0x412b50
xor eax, eax
xor esi, esi
jmp 0x412b2f