Function at 0x412740
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 0x41289e
sar eax, 1
je 0x412a71
xor esi, esi
lea esi, [esi]
inc esi
sar eax, 1
jne 0x412764
cmp esi, 0xe
jg 0x412a17
mov eax, esi
shl eax, 4
mov edx, dword [ebx + 0x7c]
cmp byte [ebx + 0x6c], 0
je 0x4128a8
mov ecx, dword [ebx + edx*4 + 0x5c]
lea eax, [ecx + eax*4]
inc dword [eax]
mov al, byte [ebx + 0x6c]
test esi, esi
jne 0x412972
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 0x412894
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x412894
nop
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x412878
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 0x41280f
jmp 0x412872
cmp edx, 0xff
je 0x412845
shl esi, 8
sub edi, 8
cmp edi, 7
jle 0x41286c
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 0x4127fc
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411d98
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412804
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 0x412804
mov eax, ebx
call fcn.00411d98
shl esi, 8
sub edi, 8
cmp edi, 7
jg 0x41280f
lea edi, [ebp - 7]
and edi, 7
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], edi
dec dword [esp + 0x18]
je 0x412894
inc dword [esp + 0x1c]
mov al, byte [ebx + 0x6c]
jmp 0x4127cc
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 0x412a2d
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 0x41295d
mov ebp, edx
jmp 0x4128fb
cmp edx, 0xff
je 0x412931
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412958
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 0x4128e8
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411d98
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x4128f0
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 0x4128f0
mov eax, ebx
call fcn.00411d98
shl edi, 8
sub ebp, 8
cmp ebp, 7
jg 0x4128fb
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 0x412798
mov edx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x41288a
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 0x412a66
mov ebp, esi
jmp 0x4129c3
cmp edx, 0xff
je 0x4129f9
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412a60
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 0x4129ac
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411d98
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x4129b4
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 0x4129b4
mov eax, ebx
call fcn.00411d98
jmp 0x4129b4
mov edx, dword [ebx + 0x78]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x29
mov dword [esp], edx
call dword [eax]
jmp 0x412772
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 0x412790
jmp 0x4128c2
and esi, 7
mov al, byte [ebx + 0x6c]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], esi
jmp 0x412798
xor eax, eax
xor esi, esi
jmp 0x412777