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

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], eax
jne 0x41d625
mov ecx, dword [esi]
test cl, 8
je 0x41d24f
mov eax, 0xd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, dword [esp + 0x18c]
and ecx, 0xffffff0f
mov edx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x20], eax
and eax, 0xffffffcf
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x60], 0
mov dword [esi], ecx
mov dword [esp + 0x2c], edx
sub eax, 1
je 0x41d424
sub eax, 1
je 0x41d33a
sub eax, 6
je 0x41d310
mov ebp, dword [esp + 0x180]
test ebp, ebp
je 0x41d625
mov edx, dword [esp + 0x184]
mov eax, edx
mov edi, dword [esp + 0x188]
or eax, edi
je 0x41d625
mov eax, dword [esp + 0x24]
or ecx, 0xa0
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edi
mov dword [esi], ecx
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esp + 0x14], eax
jmp 0x41d3b7
mov eax, dword [esp + 0x24]
mov dword [esi + 0x64], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esp + 0x28], 0x41c00010
mov dword [esp + 0x14], eax
jmp 0x41d4a1
mov edi, dword [esp + 0x180]
test edi, edi
je 0x41d625
test byte [esp + 0x20], 0x10
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push edi
je 0x41d368
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41d36e
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x64], eax
cmp eax, 0xffffffff
jne 0x41d388
mov ebp, 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
push 0
push 0
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.0041ce20
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x41d40e
or dword [esi], 0x40
test ebx, ebx
cmovne edi, ebx
mov ebx, edi
test byte [esi], 0x20
jne 0x41d522
test byte [esp + 0x20], 0x10
mov dword [esp + 0x28], 0x81800000
push ebx
je 0x41d474
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea ecx, [ebx + eax*2]
movzx eax, word [ecx]
cmp eax, 0x2e
je 0x41d4a1
cmp ecx, ebx
jbe 0x41d499
cmp ax, 0x2f
je 0x41d499
cmp ax, 0x5c
je 0x41d499
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x2e
jne 0x41d3e1
jmp 0x41d4a1
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, dword [esp + 0x180]
mov dword [esi + 0x64], eax
test eax, eax
je 0x41d625
cmp eax, 0xffffffff
je 0x41d625
push dword [esp + 0x188]
lea edx, [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x188]
call fcn.0041ce20
mov ebp, eax
mov dword [esp + 0x1c], eax
add esp, 8
test ebp, ebp
je 0x41d3ae
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
call dword [esp + 0x30]
lea ecx, [ebx - 1]
add ecx, eax
mov al, byte [ecx]
cmp al, 0x2e
je 0x41d4a1
cmp ecx, ebx
jbe 0x41d499
cmp al, 0x2f
je 0x41d499
cmp al, 0x5c
je 0x41d499
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x2e
jne 0x41d483
jmp 0x41d4a1
mov dword [esp + 0x28], 0x81c00000
test byte [esp + 0x20], 0x20
jne 0x41d518
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c53b0
movzx ebp, word [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x30], ecx
movzx ecx, word [esp + 0x1c]
shl ebp, 0x10
or ebp, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebp
jmp 0x41d546
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
jmp 0x41d532
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add eax, 0x161
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x41d57e
lea ebx, [eax + 2]
jmp 0x41d62a
push 0x150
push 0
push edi
call fcn.004ad280
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, eax
and ecx, 0x20
mov dword [esp + 0x4c], ecx
je 0x41d5d7
mov eax, 8
mov bl, 8
mov word [edi + 2], ax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x3c], eax
or dword [esi], 0x80000000
mov ecx, dword [esi]
mov byte [esp + 0x10], bl
jmp 0x41d971
and eax, 0x10
lea ebp, [edi + 0x48]
mov dword [esp + 0x54], eax
je 0x41d60a
push 0
push 0
push 0x104
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [edi + 0x20], eax
test eax, eax
je 0x41d61e
dec eax
mov dword [edi + 0x20], eax
jmp 0x41d61a
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [esp + 0x30]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x41d645
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, 9
mov ebp, dword [esp + 0x18]
test byte [esi], 0x40
je 0x41d638
push dword [esi + 0x64]
call ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, ebp
mov cl, byte [eax]
test cl, cl
je 0x41d660
nop dword [eax]
cmp cl, 0x5c
jne 0x41d658
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41d650
mov edx, dword [esp + 0x30]
lea ecx, [edi + 0x150]
mov eax, 8
mov byte [esp + 0x5d], dl
mov word [edi], ax
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x34], eax
lea eax, [esp + 0x58]
mov dword [edi + 0x40], eax
mov eax, edx
shr eax, 8
mov byte [esp + 0x5e], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x5f], al
shr edx, 0x18
mov byte [esp + 0x60], dl
mov edx, dword [esp + 0x34]
mov eax, edx
shr eax, 8
mov byte [esp + 0x62], al
mov eax, edx
mov byte [esp + 0x61], dl
shr eax, 0x10
mov byte [esp + 0x63], al
shr edx, 0x18
mov byte [esp + 0x64], dl
mov edx, dword [esp + 0x24]
mov eax, edx
shr eax, 8
mov byte [esp + 0x66], al
mov eax, edx
mov byte [esp + 0x65], dl
mov dword [esp + 0x58], 0xd5455
mov byte [esp + 0x5c], 7
movq xmm0, qword [esp + 0x58]
shr eax, 0x10
mov byte [esp + 0x67], al
mov dword [edi + 0x44], ecx
mov dword [edi + 0x24], 0x11
mov dword [edi + 0x28], 9
shr edx, 0x18
mov byte [esp + 0x68], dl
movq qword [ecx], xmm0
mov al, byte [esp + 0x60]
mov byte [ecx + 8], al
mov eax, dword [edi + 0x44]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x10], bl
mov byte [eax + 2], 5
mov eax, dword [edi + 0x44]
mov byte [eax + 4], 1
cmp dword [esp + 0x54], ebx
je 0x41d7b9
mov ecx, dword [edi + 0x20]
mov edx, ebp
push ecx
mov word [esp + 0x6d], 0x7075
mov byte [esp + 0x71], 1
lea eax, [ecx + 0x1b]
mov dword [edi + 0x24], eax
lea eax, [ecx + 0x13]
mov dword [edi + 0x28], eax
mov al, cl
add al, 0xa
mov byte [esp + 0x6f], al
lea eax, [ecx + 0xa]
shr eax, 8
xor ecx, ecx
mov byte [esp + 0x70], al
call fcn.0041c9f0
mov ecx, eax
mov byte [esp + 0x72], al
shr ecx, 8
add esp, 4
mov byte [esp + 0x6f], cl
mov ecx, eax
shr eax, 0x18
mov byte [esp + 0x71], al
mov eax, dword [edi + 0x40]
shr ecx, 0x10
mov byte [esp + 0x70], cl
mov ecx, dword [edi + 0x44]
movq xmm0, qword [eax + 0x11]
movq qword [ecx + 9], xmm0
mov al, byte [eax + 0x19]
mov byte [ecx + 0x11], al
mov eax, dword [edi + 0x20]
inc eax
push eax
mov eax, dword [edi + 0x44]
add eax, 0x12
push ebp
push eax
call fcn.004aef60
add esp, 0xc
cmp dword [esi], ebx
jge 0x41d7c7
mov byte [esp + 0x10], 8
mov dword [edi + 0x24], ebx
jmp 0x41d843
test byte [esp + 0x20], 8
je 0x41d7e2
mov eax, dword [edi + 0x20]
cmp byte [eax + edi + 0x47], 0x2f
je 0x41d843
mov byte [eax + edi + 0x48], 0x2f
inc dword [edi + 0x20]
jmp 0x41d843
cmp dword [esi + 8], ebx
je 0x41d7f7
mov eax, 9
mov dword [esp + 0x14], 0xc
mov word [edi], ax
push ebp
call dword [esp + 0x30]
lea ebx, [eax + ebp]
cmp ebx, ebp
jbe 0x41d80f
cmp byte [ebx], 0x2e
je 0x41d80d
dec ebx
cmp ebx, ebp
ja 0x41d803
cmp ebx, ebp
jne 0x41d816
cmp byte [ebx], 0x2e
jne 0x41d83a
mov ebp, 0x4cf690
nop dword [eax + eax]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41d83f
push ebp
call dword [esp + 0x30]
inc ebp
add ebp, eax
cmp byte [ebp], 0
jne 0x41d820
mov byte [esp + 0x10], 8
mov ebx, dword [esp + 0x14]
mov ax, word [edi]
mov cl, byte [esp + 0x10]
mov word [edi + 0x30], ax
movzx eax, cl
mov word [edi + 2], ax
test cl, cl
jne 0x41d876
mov edx, dword [esi + 0x50]
mov eax, edx
mov ebp, dword [esi + 0x54]
and eax, ebp
cmp eax, 0xffffffff
je 0x41d876
mov eax, ebx
xor ecx, ecx
add eax, edx
mov dword [edi + 0x10], eax
adc ecx, ebp
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x50]
mov edx, esi
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
adc eax, dword [esi + 0x1c]
mov dword [edi + 0x38], ecx
mov ecx, edi
mov dword [edi + 0x3c], eax
mov dword [esi + 0x20], 0
call fcn.0041c060
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x41dca0
mov ecx, dword [esi]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x41d8c6
lea eax, [edx + 0xb]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
jmp 0x41d96d
mov eax, dword [edi + 0x24]
add eax, 0x32
add eax, edx
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
cmp dword [esp + 0x14], 0
je 0x41d96d
mov dword [esi + 0x38], 0x12345678
mov dword [esi + 0x3c], 0x23456789
mov dword [esi + 0x40], 0x34567890
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x41d913
nop dword [eax]
mov dl, byte [ebx]
test dl, dl
je 0x41d913
lea ecx, [esi + 0x38]
call fcn.0041cae0
add ebx, 1
jne 0x41d900
xor ebx, ebx
call fcn.004b2e12
sar eax, 7
mov byte [esp + ebx + 0x38], al
inc ebx
cmp ebx, 0xc
jl 0x41d915
mov al, byte [edi + 5]
xor ebx, ebx
mov byte [esp + 0x43], al
mov dl, byte [esp + ebx + 0x38]
lea ecx, [esi + 0x38]
call fcn.0041cb30
mov byte [esp + ebx + 0x38], al
inc ebx
cmp ebx, 0xc
jl 0x41d930
push 0xc
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.0041cc60
mov ebx, dword [esi + 0x20]
add esp, 4
test ebx, ebx
jne 0x41dca0
add dword [esi + 0x10], 0xc
adc dword [esi + 0x14], ebx
or dword [esi], 0x10
mov ecx, dword [esi]
mov bl, byte [esp + 0x10]
mov edx, dword [esi + 0x64]
test edx, edx
je 0x41da5a
cmp bl, 8
jne 0x41d98f
mov edx, edi
mov ecx, esi
call fcn.0041cf70
jmp 0x41da19
test cl, cl
mov ecx, esi
jns 0x41d9c3
mov ebx, dword [esi + 0x68]
push ebx
call fcn.0041cc60
mov edx, dword [esi + 0x64]
add esp, 4
add dword [esi + 0x58], ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push ebx
call fcn.0041c9f0
add esp, 4
mov dword [esi + 0x60], eax
add dword [esi + 0x70], ebx
adc dword [esi + 0x74], 0
jmp 0x41da12
push 0x4000
lea edx, [esi + 0x84]
call fcn.0041ceb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41da12
nop dword [eax]
cmp dword [esi + 0x20], 0
jne 0x41da12
push ebx
lea edx, [esi + 0x84]
mov ecx, esi
call fcn.0041cc60
add esp, 4
lea edx, [esi + 0x84]
mov ecx, esi
push 0x4000
call fcn.0041ceb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41d9e0
add dword [esi + 0x78], ebx
adc dword [esi + 0x7c], 0
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x41dca0
mov ecx, dword [esi]
mov ebp, dword [esp + 0x18]
and ecx, 0xffffffef
mov dword [esi], ecx
test cl, 0x40
je 0x41da3b
push dword [esi + 0x64]
call ebp
mov ecx, dword [esi]
mov eax, dword [esi + 0x58]
and ecx, 0xffffffbf
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x78]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x7c]
adc dword [esi + 0x14], eax
mov dword [esi], ecx
jmp 0x41da5e
mov ebp, dword [esp + 0x18]
test ecx, ecx
jns 0x41daba
or ecx, 8
cmp dword [esp + 0x4c], 0
mov dword [esi], ecx
jne 0x41dc82
mov edx, dword [esi + 0x60]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [esi + 0x62]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [esi + 0x58]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [esi + 0x58]
mov ecx, esi
mov eax, dword [esi + 0x5c]
shrd edx, eax, 0x10
call fcn.0041cba0
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x41dca4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, ecx
mov ebx, edx
add eax, dword [esi + 0x78]
adc ebx, dword [esi + 0x7c]
cmp dword [edi + 0x10], eax
jne 0x41dad8
cmp dword [edi + 0x14], ebx
jne 0x41dad8
mov bl, 1
jmp 0x41dada
xor bl, bl
mov eax, dword [esi + 0x60]
mov dword [edi + 8], eax
mov eax, ecx
add eax, dword [esi + 0x78]
adc edx, dword [esi + 0x7c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x50]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x1c], eax
test byte [esi], 4
je 0x41db85
test ecx, ecx
jne 0x41db85
movzx eax, byte [esp + 0x10]
mov word [edi + 2], ax
movzx eax, word [edi]
mov ecx, eax
test al, 1
jne 0x41db28
and eax, 0xfff7
mov word [edi], ax
movzx ecx, ax
mov eax, dword [edi + 0x3c]
mov word [edi + 0x30], cx
mov ecx, dword [edi + 0x38]
sub ecx, dword [esi + 0x18]
sbb eax, dword [esi + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0041cd80
add esp, 8
test eax, eax
je 0x41db74
mov edx, esi
mov ecx, edi
call fcn.0041c060
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x41dca4
push dword [esi + 0x14]
mov ecx, esi
push dword [esi + 0x10]
call fcn.0041cd80
add esp, 8
test eax, eax
jne 0x41dc4e
mov ebx, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41d62e
mov cl, byte [esp + 0x10]
movzx eax, cl
cmp word [edi + 2], ax
jne 0x41dc8f
test cl, cl
jne 0x41dba2
test bl, bl
je 0x41dc8f
mov edx, 0x8074b50
mov ecx, esi
call fcn.0041cba0
mov edx, 0x807
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.0041cba0
cmp dword [edi + 0x14], 0
mov edx, dword [edi + 0x10]
ja 0x41dbf0
cmp edx, 0xffffffff
jae 0x41dbf0
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
jmp 0x41dbfd
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
cmp dword [edi + 0x1c], 0
mov edx, dword [edi + 0x18]
ja 0x41dc25
cmp edx, 0xffffffff
jae 0x41dc25
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
jmp 0x41dc32
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x41dca4
add dword [esi + 0x10], 0x10
adc dword [esi + 0x14], ebx
mov ax, word [edi + 0x30]
mov word [edi], ax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x41dc65
mov dword [esi + 0x4c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, dword [ecx + 0x14c]
test eax, eax
je 0x41dc7c
nop
mov ecx, eax
mov eax, dword [ecx + 0x14c]
test eax, eax
jne 0x41dc70
mov dword [ecx + 0x14c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret
mov ebx, 0x11
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41d62e
mov ebp, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41d62e