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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
movzx edx, byte [eax + 0x15]
xor eax, eax
cmp edx, 4
ja case.default.0x41616c
jmp dword [edx*4 + 0x422218]
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ebx, dword [eax + 0x44]
mov ecx, edx
mov eax, dword [eax + 0x18]
mov edx, dword [edx]
lea edx, [edx + eax*4]
inc eax
mov dword [ecx + 0x18], eax
mov eax, esi
mov dword [esp], 0xfffffffd
call fcn.00415d60
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
cmp dword [edx + 0x18], eax
jl 0x4161a6
mov byte [edx + 0x15], 3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x44]
sub ebx, eax
sub dword [ecx + 0x48], ebx
mov eax, 0xa
lea esi, [esi]
lea edi, [edi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x4164e1
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov byte [ecx + 0x15], 0
mov dword [ecx + 0x4c], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call fcn.004160c0
xor eax, eax
jmp 0x4161e6
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x4164ab
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + 0x8c]
mov edi, ecx
add edi, 0x78
lea esi, [esi]
lea edi, [edi]
cmp edi, ebx
je 0x4162f5
movzx eax, byte [ebx + 5]
test al, 4
jne 0x416250
test al, 3
jne 0x416250
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 3
jle 0x416250
mov edx, dword [eax]
test byte [edx + 5], 3
jne 0x416458
lea esi, [esi]
mov ebx, dword [ebx + 0x14]
jmp 0x416220
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x44]
mov dword [esp], 0x28
mov eax, esi
call fcn.00415d60
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [eax]
test eax, eax
jne 0x4162dd
mov ebx, dword [esi + 0x10]
mov edx, dword [ebx + 8]
test edx, edx
mov eax, edx
js 0x416477
sar eax, 2
cmp dword [ebx + 4], eax
jae 0x416299
cmp edx, 0x40
jg 0x4164c6
mov eax, dword [ebx + 0x3c]
cmp eax, 0x40
jbe 0x4162d6
shr eax, 1
mov dword [ebp - 0x14], eax
inc eax
cmp eax, 0xfffffffd
ja 0x4164b9
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0041a510
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x15], 4
mov ecx, dword [ebp - 0x18]
mov eax, 0x190
mov esi, dword [ecx + 0x44]
sub edi, esi
sub dword [ecx + 0x48], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
call fcn.00415ce0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x2c], 0
mov dword [edx + 0x24], eax
test byte [esi + 5], 3
jne 0x416468
mov eax, dword [ebp - 0x18]
call fcn.00416070
mov eax, dword [ebp - 0x18]
call fcn.00415ce0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], eax
mov eax, ecx
call fcn.00415ce0
mov dword [esp], esi
xor eax, eax
mov dword [esp + 4], eax
call fcn.00415660
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jmp 0x41637f
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebx + 5]
movzx edx, byte [ecx + 0x14]
and al, 0xf8
and dl, 3
or al, dl
mov edx, ebx
mov byte [ebx + 5], al
mov eax, ecx
call fcn.00415570
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x30], ebx
jne 0x416359
mov eax, dword [ebp - 0x18]
call fcn.00415ce0
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 0x2c]
lea esi, [esi]
lea edi, [edi]
test edi, edi
je 0x41647f
test byte [edi + 5], 0x10
mov esi, dword [edi + 0x1c]
je 0x4163f0
jmp 0x4163c0
dec esi
cmp esi, 0xffffffff
je 0x4163f0
mov eax, dword [edi + 0xc]
mov ebx, esi
xor edx, edx
shl ebx, 4
add ebx, eax
mov eax, ebx
call fcn.00415d10
test eax, eax
je 0x4163c0
mov dword [ebx + 8], 0
dec esi
cmp esi, 0xffffffff
jne 0x4163c6
lea esi, [esi]
movzx ecx, byte [edi + 7]
mov esi, 1
shl esi, cl
nop
lea esi, [esi]
dec esi
cmp esi, 0xffffffff
je 0x416450
mov eax, dword [edi + 0x10]
mov ebx, esi
shl ebx, 5
add ebx, eax
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x416400
lea eax, [ebx + 0x10]
mov edx, 1
call fcn.00415d10
test eax, eax
jne 0x416435
xor edx, edx
mov eax, ebx
call fcn.00415d10
test eax, eax
je 0x416400
mov dword [ebx + 8], 0
mov eax, ebx
call fcn.00415550
dec esi
cmp esi, 0xffffffff
jne 0x416406
lea esi, [esi]
mov edi, dword [edi + 0x18]
jmp 0x4163a0
mov eax, dword [ebp - 0x18]
call fcn.00415570
mov ebx, dword [ebx + 0x14]
jmp 0x416220
mov eax, dword [ebp - 0x18]
mov edx, esi
call fcn.00415570
jmp 0x416317
lea eax, [edx + 3]
jmp 0x416288
mov ecx, dword [ebp - 0x18]
mov eax, ecx
add eax, 0x1c
xor byte [ecx + 0x14], 3
mov byte [ecx + 0x15], 2
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov eax, dword [ecx + 0x44]
sub eax, edx
mov dword [ecx + 0x48], eax
xor eax, eax
jmp 0x4161e6
add esp, 0x1c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00415730
mov dword [esp], esi
call fcn.0041a4f0
jmp 0x4162cd
mov dword [esp], esi
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov dword [esp + 4], eax
call fcn.00418820
jmp 0x416299
mov eax, esi
call fcn.00415ed0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x48]
cmp eax, 0x64
jbe 0x4164f9
sub eax, 0x64
mov dword [edx + 0x48], eax
mov eax, 0x64
jmp case.default.0x41616c