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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f60b
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x41d699
mov al, 1
jmp 0x41de1d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d6a7
xor al, al
jmp 0x41de1d
mov eax, dword [esp + 0x9c]
push ebx
push esi
cmp eax, 0x20574952
push edi
mov dword [ebp + 0xc], 1
jne 0x41d930
mov ebx, dword [esp + 0x9c]
push 1
mov ecx, ebx
call fcn.004246b0
mov edi, dword [esp + 0xa0]
push 1
push edi
mov ecx, ebx
call fcn.004248f0
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
push 0x12
push ecx
mov ecx, ebx
mov byte [esp + 0x46], 0
call dword [eax + 0x40]
mov ax, word [esp + 0x32]
test ax, ax
setl cl
test cl, cl
mov byte [esp + 0x20], cl
je 0x41d715
mov eax, dword [esp + 0x32]
neg eax
mov word [esp + 0x32], ax
mov cx, word [esp + 0x30]
test cx, cx
jle 0x41de10
test ax, ax
jle 0x41de10
movsx ecx, cx
lea esi, [ebp + 0x10]
push 0
movsx eax, ax
mov dword [esi + 8], ecx
mov ecx, ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], eax
call fcn.004248a0
mov edx, dword [esp + 0xa4]
push 0x50
add edi, edx
sub edi, eax
call fcn.0044748b
add esp, 4
mov dword [esp + 0x2c], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x94], ecx
je 0x41d78d
mov ecx, dword [ebp + 0x28]
push 1
movsx edx, word [esp + 0x38]
push ecx
push esi
push edx
mov ecx, eax
call fcn.0041e4c0
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x94], 0xffffffff
mov dword [ebp + 0x20], ecx
je 0x41de10
mov eax, dword [ecx + 0x34]
movsx esi, word [esp + 0x32]
mov dword [esp + 0x24], eax
mov eax, edi
cdq
idiv esi
mov edx, dword [esp + 0x24]
sub edx, eax
mov dword [esp + 0x2c], edx
jne 0x41d81c
push ecx
lea ecx, [esp + 0x28]
call fcn.00424170
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x94], 1
call fcn.0041e920
test eax, eax
je 0x41d806
mov edx, dword [ebx]
push edi
push eax
mov ecx, ebx
call dword [edx + 0x40]
cmp eax, edi
jne 0x41d806
mov ecx, dword [ebp + 0x20]
mov al, byte [esp + 0x20]
cmp byte [ecx + 0xb], al
je 0x41d7ff
call fcn.00423c60
mov dword [ebp + 0xc], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x94], 0xffffffff
call fcn.00424190
jmp 0x41d871
push edi
call fcn.0042a9b0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x41d871
mov edx, dword [ebx]
push edi
push eax
mov ecx, ebx
call dword [edx + 0x40]
cmp eax, edi
jne 0x41d864
movsx ecx, word [esp + 0x34]
mov eax, dword [esp + 0x20]
movsx edx, word [esp + 0x32]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push edi
push eax
call fcn.004230a0
test al, al
je 0x41d864
mov dword [ebp + 0xc], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.0042a9d0
add esp, 4
mov eax, dword [ebp + 0x20]
mov dl, byte [esp + 0x3e]
mov byte [eax + 0x40], dl
mov cl, byte [esp + 0x3f]
mov byte [eax + 0x41], cl
mov dl, byte [esp + 0x40]
mov byte [eax + 0x42], dl
mov cl, byte [esp + 0x41]
mov byte [eax + 0x43], cl
mov ecx, dword [eax]
test ecx, ecx
jne 0x41d8a1
mov cl, byte [eax + 0x40]
test cl, cl
jne 0x41d8a1
mov byte [eax + 0x40], 0x20
movsx edx, word [esp + 0x38]
push edx
mov ecx, ebp
call fcn.0041e220
test byte [esp + 0x3e], 8
je 0x41de10
movzx ax, byte [esp + 0x3f]
movzx cx, byte [esp + 0x40]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
test si, si
je 0x41de10
push 0x5c
call fcn.0044748b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x94], 2
je 0x41d900
push esi
mov ecx, eax
call fcn.0041cc50
mov esi, eax
jmp 0x41d902
xor esi, esi
test esi, esi
mov dword [esp + 0x94], 0xffffffff
je 0x41de10
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41d925
mov ecx, dword [ebp + 0x20]
push esi
call fcn.0041e930
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
jmp 0x41de10
cmp eax, 0x504d422e
jne 0x41de10
mov edi, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
push 1
push edi
mov ecx, esi
call fcn.004248f0
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push 0xe
push ecx
mov ecx, esi
call dword [eax + 0x40]
cmp eax, 0xe
jne 0x41de10
cmp word [esp + 0x44], 0x4d42
je 0x41d985
push 1
push edi
mov ecx, esi
mov dword [esp + 0x56], 0
call fcn.004248f0
mov edx, dword [esi]
lea eax, [esp + 0x64]
push 0x28
push eax
mov ecx, esi
call dword [edx + 0x40]
cmp eax, 0x28
jne 0x41de10
mov edi, dword [esp + 0x64]
cmp edi, 0xc
mov dword [esp + 0x28], edi
jne 0x41da24
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x36]
and eax, 0xffff
xor ebx, ebx
mov dword [esp + 0x68], eax
mov ax, word [esp + 0x3a]
and edx, 0xffff
mov word [esp + 0x70], cx
push ebx
push 0xffffffffffffffe4
mov ecx, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x74], edx
mov word [esp + 0x7a], ax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004248f0
mov edi, dword [esp + 0x64]
jmp 0x41da26
xor ebx, ebx
mov esi, dword [esp + 0x6c]
cmp esi, ebx
setg byte [esp + 0x20]
cmp esi, ebx
jge 0x41da3b
neg esi
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x72]
cmp eax, ebx
jne 0x41da65
mov eax, edx
and eax, 0xffff
imul eax, dword [esp + 0x68]
add eax, 0x1f
shr eax, 3
and eax, 0x1ffffffc
imul eax, esi
mov dword [esp + 0x78], eax
mov ebx, dword [esp + 0x84]
test ebx, ebx
jne 0x41da8a
cmp word [esp + 0x72], 8
ja 0x41da8a
mov cl, byte [esp + 0x72]
mov ebx, 1
shl ebx, cl
mov dword [esp + 0x84], ebx
and edx, 0xffff
mov dword [esp + 0x2c], ebx
cmp edx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
jne 0x41db65
mov dword [esp + 0x18], 0xf
xor ecx, ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
lea ebx, [ebp + 0x10]
add ecx, edi
push ecx
mov dword [esp + 0x28], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call fcn.0042a9b0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41de10
mov ecx, 0xa
lea esi, [esp + 0x64]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x41db83
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x9c]
cmp eax, 0xc
mov edx, dword [ecx]
jne 0x41db7a
mov edi, dword [esp + 0x2c]
lea eax, [edi + edi*2]
push eax
push esi
call dword [edx + 0x40]
lea ecx, [edi - 1]
test ecx, ecx
jl 0x41db83
lea eax, [esi + ecx*2]
lea edx, [esi + ecx*4]
mov byte [esp + 0x13], 0
lea esi, [ecx + 1]
lea eax, [ecx + eax + 1]
mov cl, byte [eax + 1]
sub eax, 3
mov byte [esp + 0x12], cl
mov cl, byte [eax + 2]
mov byte [esp + 0x10], cl
mov cl, byte [eax + 3]
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x10]
mov dword [edx], ecx
sub edx, 4
dec esi
jne 0x41db3f
jmp 0x41db83
cmp edx, 8
jne 0x41daad
lea ecx, [ebx*4]
jmp 0x41daaf
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [edx + 0x40]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41db94
mov edx, dword [eax + 8]
add eax, 8
mov ecx, eax
call dword [edx]
mov al, byte [ebp + 0x2c]
or esi, 0xffffffff
test al, al
je 0x41dbe3
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x41dbe3
push 0x64
call fcn.0044748b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x94], 3
je 0x41dbd8
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0041bbd0
mov dword [esp + 0x94], esi
jmp 0x41dbe5
xor eax, eax
mov dword [esp + 0x94], esi
jmp 0x41dbe5
xor eax, eax
mov edi, dword [ebp + 0x20]
mov dword [ebp + 0x28], eax
test edi, edi
je 0x41dbff
mov ecx, edi
call fcn.0041e5e0
push edi
call fcn.004474b4
add esp, 4
push 0x50
call fcn.0044748b
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x94], 4
je 0x41dc31
mov edx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x18]
push 1
push edx
push ebx
push ecx
mov ecx, eax
call fcn.0041e4c0
jmp 0x41dc33
xor eax, eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x4e]
test eax, eax
mov dword [esp + 0x94], esi
je 0x41dc61
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
add eax, edx
push 1
push eax
mov ecx, ebx
call fcn.004248f0
jmp 0x41dc68
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x41de03
push eax
lea ecx, [esp + 0x30]
call fcn.00424170
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x94], 5
call fcn.0041e920
mov esi, eax
test esi, esi
je 0x41ddef
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41dd53
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x18]
movsx edx, word [ecx + 0x3c]
cmp edx, eax
je 0x41dd18
mov edi, dword [esp + 0x24]
push edi
call fcn.0042a9b0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41ddef
mov edx, dword [ebx]
push edi
push eax
mov ecx, ebx
call dword [edx + 0x40]
cmp eax, edi
jne 0x41dd06
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push edi
push eax
call fcn.004230a0
test al, al
je 0x41dd06
mov dword [ebp + 0xc], 0
lea ecx, [esp + 0x14]
push ecx
call fcn.0042a9d0
add esp, 4
jmp 0x41ddef
mov edi, dword [esp + 0x24]
mov edx, dword [ebx]
push edi
push esi
mov ecx, ebx
call dword [edx + 0x40]
cmp eax, edi
jne 0x41ddef
mov ecx, dword [ebp + 0x20]
push 0
call fcn.00423d50
mov ecx, dword [ebp + 0x20]
mov al, byte [esp + 0x20]
mov dword [ebp + 0xc], 0
cmp byte [ecx + 0xb], al
je 0x41ddef
jmp 0x41ddea
cmp eax, 1
jne 0x41ddef
mov ebx, dword [esp + 0x9c]
push 0
mov ecx, ebx
call fcn.004248a0
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
lea edi, [edx + ecx]
sub edi, eax
push edi
call fcn.0042a9b0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x41ddef
mov edx, dword [ebx]
push edi
push eax
mov ecx, ebx
call dword [edx + 0x40]
cmp eax, edi
jne 0x41ddd1
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
mov eax, dword [eax + 0x34]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], 0x4546b0
call fcn.00434650
test eax, eax
je 0x41ddd1
mov dword [ebp + 0xc], 0
lea edx, [esp + 0x14]
push edx
call fcn.0042a9d0
mov ecx, dword [ebp + 0x20]
mov al, byte [esp + 0x24]
add esp, 4
cmp byte [ecx + 0xb], al
je 0x41ddef
call fcn.00423c60
lea ecx, [esp + 0x2c]
mov dword [esp + 0x94], 0xffffffff
call fcn.00424190
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042a9d0
add esp, 4
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x80]
pop ebp
mov dword fs:[0], ecx
add esp, 0x88
ret 0x10