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

Disassembly:
sub esp, 0xa4
push ebp
mov ebp, dword [esp + 0xac]
push edi
xor edi, edi
cmp eax, edi
jne 0x41db22
mov eax, dword [ebp]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0xc0]
push edx
push ebx
push eax
push ecx
push ebp
call fcn.0041cf50
add esp, 0x20
pop edi
pop ebp
add esp, 0xa4
ret
mov ecx, dword [ebp]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
imul eax, ebx
push esi
push eax
call fcn.004204ed
mov ecx, 2
mov edx, 8
mov esi, 1
mov dword [esp + 0x18], eax
mov eax, 4
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], edi
jmp 0x41dbf0
mov ecx, dword [esp + edi + 0x5c]
mov eax, dword [esp + edi + 0x78]
mov esi, dword [ebp]
mov dword [esp + 0x3c], eax
mov edx, ecx
sub edx, eax
mov eax, dword [esi]
lea eax, [edx + eax - 1]
xor edx, edx
div ecx
mov ecx, dword [esp + edi + 0x40]
mov edx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + edi + 0x94]
sub edx, eax
mov dword [esp + 0x30], eax
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x41dd8d
test eax, eax
je 0x41dd8d
mov esi, dword [esi + 8]
mov edx, dword [esp + 0xc4]
imul esi, ecx
imul esi, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xc4]
add esi, 7
push edx
push eax
sar esi, 3
push ecx
mov ecx, dword [esp + 0xc8]
inc esi
imul esi, eax
mov eax, dword [esp + 0xcc]
push ebx
push eax
push ecx
push ebp
mov dword [esp + 0x54], esi
call fcn.0041cf50
add esp, 0x20
test eax, eax
je 0x41ddb3
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x41dd61
mov ecx, dword [esp + 0x10]
mov edx, ecx
imul edx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], edx
jmp 0x41dcc0
mov ecx, dword [esp + 0x10]
mov edi, edi
test ecx, ecx
jle 0x41dd48
mov edx, dword [esp + edi + 0x40]
imul edx, eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + edi + 0x5c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x18], ecx
jmp 0x41dcf0
mov edi, dword [ebp]
mov edi, dword [edi]
imul edi, dword [esp + 0x28]
mov esi, dword [ebp + 0xc]
add edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
add edi, edx
imul edi, ebx
add edi, ebp
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0xb4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
add eax, ebx
add edx, esi
dec ecx
mov dword [esp + 0x18], ecx
jne 0x41dcf0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
add ecx, edx
inc eax
mov dword [esp + 0xc], ecx
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x41dcba
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004204ff
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
add ecx, esi
add esp, 4
sub eax, esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add edi, 4
cmp edi, 0x1c
mov dword [esp + 0x24], edi
jl 0x41dbf0
mov eax, dword [esp + 0x14]
pop esi
mov dword [ebp + 0xc], eax
pop edi
mov eax, 1
pop ebp
add esp, 0xa4
ret
mov edx, dword [esp + 0x14]
push edx
call fcn.004204ff
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xa4
ret