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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x20]
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
push edi
mov dword [ebp - 4], edx
mov dword [ebp + 0x20], ebx
cmp byte [esi + 0x49], 4
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x41d9db
mov eax, dword [esi + 0x44]
jmp 0x41db62
mov edx, dword [esi + 0x3c]
mov ecx, eax
push esi
call fcn.00417eb5
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41db60
mov edi, dword [ebp + 0xc]
xor edx, edx
cmp dword [esi + 0x10], edx
jne 0x41da33
mov ecx, dword [ebp - 0x10]
push edi
push dword [ebp + 8]
call fcn.00417dc3
test byte [esi + 0x48], 2
pop ecx
pop ecx
je 0x41da33
cmp edi, edx
jl 0x41da33
jg 0x41da1a
cmp dword [ebp + 8], edx
jbe 0x41da33
mov eax, dword [ebp + 8]
mov ecx, edi
sub eax, 1
sbb ecx, edx
cmp dword [esi + 0x18], eax
jne 0x41da33
cmp dword [esi + 0x1c], ecx
jne 0x41da33
or ebx, 0xffffffff
jmp 0x41da5c
test ebx, ebx
jne 0x41da5c
mov edx, dword [ebp - 4]
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
mov ecx, esi
push edi
push dword [ebp + 8]
call fcn.00417f42
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x41db60
mov ebx, dword [ebp + 0x20]
movsx eax, word [esi + 0x4c]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov edi, dword [esi + eax*4 + 0x78]
mov ecx, edi
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 0x50]
mov edx, eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.0041bd7a
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x41db60
movsx ecx, word [esi + 0x4c]
movzx edx, word [esi + ecx*2 + 0x4e]
mov eax, edx
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x41db67
mov ecx, dword [edi + 0x44]
call fcn.00415643
mov ecx, eax
test ecx, ecx
jne 0x41db60
mov eax, dword [edi + 0x40]
mov ebx, dword [ebp - 8]
movzx edx, byte [eax + ebx*2 + 1]
movzx eax, byte [eax + ebx*2]
shl eax, 8
or edx, eax
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
cmp byte [edi + 5], cl
jne 0x41daed
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ecx], eax
lea eax, [ebp + 0x20]
mov ecx, edi
push eax
call fcn.0041bc54
mov dword [ebp - 4], eax
mov edx, ebx
pop ecx
lea eax, [ebp - 4]
mov ecx, edi
push eax
movzx eax, word [ebp + 0x20]
push eax
call fcn.0041bfe8
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x41db60
mov eax, ebx
xor ebx, ebx
lea ecx, [ebp - 4]
mov edx, eax
push ecx
push ebx
push ebx
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0041c0ef
mov ecx, dword [ebp - 4]
xor eax, eax
add esp, 0x14
mov word [esi + 0x2c], ax
test ecx, ecx
jne 0x41db60
cmp byte [edi + 1], al
je 0x41db60
and byte [esi + 0x48], 0xfd
mov ecx, esi
call fcn.0041d843
mov ecx, eax
movsx eax, word [esi + 0x4c]
mov eax, dword [esi + eax*4 + 0x78]
mov byte [eax + 1], bl
mov byte [esi + 0x49], bl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
jns 0x41db19
xor ebx, ebx
cmp word [edi + 0x12], bx
jbe 0x41db1b
lea eax, [edx + 1]
mov word [esi + ecx*2 + 0x4e], ax
movzx eax, ax
jmp 0x41db1b