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

Disassembly:
sub esp, 0x294
mov eax, dword [0x4e42e0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
mov ebx, dword [esp + 0x2a0]
push ebp
push edi
mov edi, dword [esp + 0x2a4]
mov ebp, ecx
cmp edi, 0xffffffff
jl 0x420057
mov eax, dword [ebp]
cmp edi, dword [eax + 4]
jge 0x420057
cmp dword [ebp + 4], 0xffffffff
je 0x41fa7b
push eax
call fcn.00423250
add esp, 4
push esi
mov dword [ebp + 4], 0xffffffff
cmp edi, dword [ebp + 0x134]
jne 0x41fab9
cmp edi, 0xffffffff
je 0x41fab9
lea esi, [ebp + 8]
mov ecx, 0x4b
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x29c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472897
add esp, 0x294
ret 8
mov eax, dword [ebp]
cmp edi, 0xffffffff
jne 0x41fb29
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
jmp 0x41fa9c
cmp dword [eax + 0x10], edi
jle 0x41fb3d
push eax
call fcn.004232d0
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x41fb99
mov esi, eax
mov eax, esi
test esi, esi
je 0x41fb92
cmp dword [esi + 0x18], 0
je 0x41fb92
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x41fb92
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00423be0
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp]
mov esi, eax
cmp dword [eax + 0x10], edi
jl 0x41fb41
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push 0
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.00423be0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [ebp]
call fcn.004239f0
add esp, 0x34
test eax, eax
je 0x41fbe3
mov eax, 0x700
jmp 0x41fa9e
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x41fc0a
cmp byte [ecx + 1], 0
je 0x41fc3b
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x10]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41fc11
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.00472e34
mov ecx, dword [ebp]
mov edi, eax
push dword [ecx]
push esi
push 1
push edi
call fcn.004230e0
add esp, 0x14
cmp eax, esi
je 0x41fc45
push edi
call fcn.00472438
add esp, 4
mov eax, 0x800
jmp 0x41fa9e
mov eax, dword [ebp]
xor ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
nop
mov al, byte [esp + ecx + 0x98]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x19b], al
test al, al
jne 0x41fc50
lea esi, [esp + 0x19c]
nop dword [eax]
mov al, byte [esi]
test al, al
je 0x41fc81
cmp byte [esi + 1], 0x3a
jne 0x41fc81
add esi, 2
jmp 0x41fc70
cmp al, 0x5c
jne 0x41fc88
inc esi
jmp 0x41fc70
cmp al, 0x2f
jne 0x41fc8f
inc esi
jmp 0x41fc70
push 0x4bf0d0
push esi
call fcn.0048a3e0
add esp, 8
test eax, eax
je 0x41fca6
lea esi, [eax + 4]
jmp 0x41fc70
push str..._
push esi
call fcn.0048a3e0
add esp, 8
test eax, eax
je 0x41fcbd
lea esi, [eax + 4]
jmp 0x41fc70
push 0x4bf0e0
push esi
call fcn.0048a3e0
add esp, 8
test eax, eax
je 0x41fcd4
lea esi, [eax + 4]
jmp 0x41fc70
push str._.._
push esi
call fcn.0048a3e0
add esp, 8
test eax, eax
je 0x41fceb
lea esi, [eax + 4]
jmp 0x41fc70
push 0x104
lea eax, [ebx + 4]
push esi
push eax
call fcn.00490650
mov edx, dword [esp + 0x78]
add esp, 0xc
mov eax, edx
mov byte [esp + 0x24], 0
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x10], eax
not cl
mov eax, dword [esp + 0x38]
and cl, 1
shr eax, 8
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 1
test eax, eax
je 0x41fd42
cmp eax, 7
je 0x41fd42
cmp eax, 0xb
je 0x41fd42
cmp eax, 0xe
jne 0x41fd78
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [esp + 0x10], al
and edx, 0xffffff01
jmp 0x41fd7c
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [ebx + 0x108], 0
cmp byte [esp + 0x10], al
je 0x41fd9d
mov dword [ebx + 0x108], 0x10
mov eax, 0x10
test dl, dl
je 0x41fdaa
or eax, 0x20
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x24], 0
je 0x41fdba
or eax, 2
mov dword [ebx + 0x108], eax
test cl, cl
je 0x41fdc7
or eax, 1
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x14], 0
je 0x41fdd7
or eax, 4
mov dword [ebx + 0x108], eax
mov edx, dword [esp + 0x48]
mov esi, 0x7bc
mov eax, dword [esp + 0x50]
mov ecx, edx
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x128], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x88], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x8e], cx
mov word [esp + 0x8a], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x90], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x92], ax
xor eax, eax
mov word [esp + 0x96], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x8c]
mov word [esp + 0x98], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], eax
jbe 0x42002c
mov byte [esp + 0x12], 0
nop dword [eax]
movzx eax, byte [esi + edi]
mov ecx, 0x4bf0f0
mov byte [esp + 0x10], al
movzx eax, byte [esi + edi + 1]
mov byte [esp + 0x11], al
lea eax, [esp + 0x10]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41ff10
test dl, dl
je 0x41ff0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41ff10
add eax, 2
add ecx, 2
test dl, dl
jne 0x41fef0
xor eax, eax
jmp 0x41ff15
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ff31
movzx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x41fed0
jmp 0x42002c
mov al, byte [esi + edi + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x41ff9e
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x11c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x120], edx
mov edx, dword [esp + 0x1c]
test dl, dl
je 0x41ffe5
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x10c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x14], 0
je 0x42002c
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x114], eax
adc edx, 0x19db1de
mov dword [ebx + 0x118], edx
test edi, edi
je 0x420039
push edi
call fcn.00472438
add esp, 4
mov eax, dword [esp + 0x2a8]
lea edi, [ebp + 8]
mov ecx, 0x4b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x134], eax
jmp 0x41fa9c
mov eax, 0x10000
jmp 0x41fa9f