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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x4d625c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x24]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
push ebx
xor ecx, ecx
mov ebx, edx
shr ebx, 1
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
jmp 0x41c9c4
mov ebx, dword [esp + 0x1c]
movsx esi, word [edi + 0x5e]
mov eax, dword [edi + esi*4 + 0x88]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x41ca0b
cmp byte [eax + 1], 0
je 0x41cb88
lea ecx, [edi + 0x8c]
push ecx
call fcn.0041c850
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41cb88
xor ecx, ecx
mov dword [edi + 0x5e], 1
mov word [edi + 0x62], cx
jmp 0x41c9c4
cmp byte [eax + 1], 0
jne 0x41ca1d
movzx edx, word [eax + 0xe]
cmp edx, ebx
jle 0x41cb88
mov ebx, dword [edi + esi*4 + 0x84]
movzx eax, word [edi + esi*2 + 0x5e]
mov ecx, dword [ebx + 0x44]
push ecx
mov dword [esp + 0x1c], eax
call fcn.00411850
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41cac9
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
je 0x41ca84
cmp byte [eax + 1], 1
jne 0x41ca84
mov dx, word [eax + 0x14]
cmp dx, word [eax + 0x10]
jne 0x41ca84
cmp dword [ebx + 0x48], 1
je 0x41ca84
movzx ecx, word [ebx + 0x10]
cmp ecx, dword [esp + 0x18]
jne 0x41ca84
lea edx, [esp + 0x24]
push edx
push eax
push ebx
call fcn.0041b4c0
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x41cac9
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.0040c210
movzx ecx, byte [edi + 0x5d]
xor edx, edx
cmp esi, 1
sete dl
push ecx
mov ecx, eax
mov dword [esp + 0x24], eax
push edx
mov edx, dword [esp + 0x20]
push ebx
call fcn.0041b720
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], eax
test esi, esi
je 0x41cac1
call fcn.0040c310
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x41cb1d
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov esi, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x41cb22
call fcn.0040bd50
cmp dword [ebx + 0x78], 0
jne 0x41cb79
mov eax, dword [ebx + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x41cb79
mov al, byte [ebx + 0xf]
cmp al, 6
je 0x41cb74
test al, al
je 0x41cb74
cmp al, 2
jb 0x41cb62
mov eax, dword [0x4de2b4]
test eax, eax
je 0x41cb4e
call eax
mov eax, ebx
call fcn.00411da0
mov eax, dword [0x4de2b8]
test eax, eax
je 0x41cb74
call eax
jmp 0x41cb74
cmp byte [ebx + 4], 0
jne 0x41cb74
push 0
push 0
call fcn.0040e380
add esp, 8
call fcn.0040e220
dec word [edi + 0x5e]
cmp dword [esp + 0xc], 0
je 0x41c9c0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41cb95
call fcn.0040c310
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.0049d48e
mov esp, ebp
pop ebp
ret