Function at 0x4128d8
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 0x412a36
sar eax, 1
je 0x412c09
xor esi, esi
lea esi, [esi]
inc esi
sar eax, 1
jne 0x4128fc
cmp esi, 0xe
jg 0x412baf
mov eax, esi
shl eax, 4
mov edx, dword [ebx + 0x7c]
cmp byte [ebx + 0x6c], 0
je 0x412a40
mov ecx, dword [ebx + edx*4 + 0x5c]
lea eax, [ecx + eax*4]
inc dword [eax]
mov al, byte [ebx + 0x6c]
test esi, esi
jne 0x412b0a
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 0x412a2c
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x412a2c
nop
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x412a10
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 0x4129a7
jmp 0x412a0a
cmp edx, 0xff
je 0x4129dd
shl esi, 8
sub edi, 8
cmp edi, 7
jle 0x412a04
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 0x412994
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411f30
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x41299c
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 0x41299c
mov eax, ebx
call fcn.00411f30
shl esi, 8
sub edi, 8
cmp edi, 7
jg 0x4129a7
lea edi, [ebp - 7]
and edi, 7
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], edi
dec dword [esp + 0x18]
je 0x412a2c
inc dword [esp + 0x1c]
mov al, byte [ebx + 0x6c]
jmp 0x412964
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 0x412bc5
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 0x412af5
mov ebp, edx
jmp 0x412a93
cmp edx, 0xff
je 0x412ac9
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412af0
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 0x412a80
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411f30
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412a88
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 0x412a88
mov eax, ebx
call fcn.00411f30
shl edi, 8
sub ebp, 8
cmp ebp, 7
jg 0x412a93
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 0x412930
mov edx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x10]
test al, al
jne 0x412a22
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 0x412bfe
mov ebp, esi
jmp 0x412b5b
cmp edx, 0xff
je 0x412b91
shl edi, 8
sub ebp, 8
cmp ebp, 7
jle 0x412bf8
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 0x412b44
mov eax, ebx
mov dword [esp + 0x10], edx
call fcn.00411f30
mov edx, dword [esp + 0x10]
cmp edx, 0xff
jne 0x412b4c
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 0x412b4c
mov eax, ebx
call fcn.00411f30
jmp 0x412b4c
mov edx, dword [ebx + 0x78]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x29
mov dword [esp], edx
call dword [eax]
jmp 0x41290a
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 0x412928
jmp 0x412a5a
and esi, 7
mov al, byte [ebx + 0x6c]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], esi
jmp 0x412930
xor eax, eax
xor esi, esi
jmp 0x41290f