Function at 0x4c7070
Capabilities:
Create directory
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653b0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1010
call fcn.00612380
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0xc]
test byte [eax + 0x14], 2
je 0x4c80f7
test byte [eax + 0x18], 2
jne 0x4c80f7
xor esi, esi
cmp dword [edi + 0x5bc], esi
je 0x4c80f7
cmp dword [edi + 0x504], esi
je 0x4c70e2
mov dword [edi + 0x504], esi
push 1
mov eax, dword [edi + 0x508]
push eax
lea ecx, [edi + 0x2c0]
call fcn.004c26a0
mov eax, dword [edi + 0x300]
cmp eax, 0xffffffff
je 0x4c7104
xor ecx, ecx
cmp eax, esi
sete cl
mov edx, dword [edi + ecx*4 + 0x2c0]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 0x300], 0xffffffff
lea ecx, [edi + 0x2c0]
call fcn.004c24c0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov byte [ebp - 0x450], 0
push 0x1ff
push esi
lea ecx, [ebp - 0x44f]
push ecx
call fcn.006100a0
add esp, 0xc
lea edx, [ebp - 0x450]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x200
ja 0x4c76c9
cmp eax, esi
je 0x4c76c9
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415220
mov dword [ebp - 4], esi
push str.smail
lea ecx, [ebp - 0x20]
call fcn.004bfda0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0xb0], ebx
mov ecx, 0x700724
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004bffd0
mov byte [ebp - 4], 3
mov ecx, 0x700724
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
mov ecx, 0x700724
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
cmp ebx, 0xffffffff
je 0x4c7687
push str.5BDBAF3E_769F_40BF_A0D6_F2D80F9121BA
lea ecx, [ebp + 0xc]
call fcn.005b2cd0
mov byte [ebp - 4], 8
mov dword [ebp - 0x48], vtable.CLockMgr_class_CMutexWrapper_.0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 1
call fcn.005b2cb0
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x61c]
cmp ebx, eax
ja 0x4c7291
cmp eax, esi
jbe 0x4c7291
push 0x30
push esi
lea edx, [ebp - 0x180]
push edx
call fcn.006100a0
add esp, 0xc
mov dword [ebp - 0x184], 4
mov dword [ebp - 0x180], ebx
lea eax, [ebp - 0x184]
push eax
push esi
push 0x104b
mov ecx, dword [edi + 0x510]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x164]
push edx
lea ecx, [edi + 0x618]
call fcn.004bd400
push eax
lea ecx, [ebp - 0x28]
call fcn.004078d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.00438370
mov byte [ebp - 4], 7
lea ecx, [ebp + 0xc]
call fcn.005b2cc0
mov byte [ebp - 4], 0xa
push 0x66fe90
mov eax, dword [ebp - 0x28]
push eax
call fcn.00614a04
add esp, 8
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [edi + 0x4e4], 0
test esi, esi
je 0x4c7ee5
push 2
push 0
push esi
call fcn.006167c5
push esi
call fcn.006166d6
sub eax, 0x12
mov dword [ebp + 0xc], eax
push 0
push 0x12
push esi
call fcn.006167c5
mov ecx, dword [ebp + 0xc]
add ecx, 0x1000
push ecx
call fcn.00611521
add esp, 0x20
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4c810c
cmp dword [ebp + 0xc], 0x96
jb 0x4c810c
mov edx, esi
push edx
push 0x1000
push 1
push eax
call fcn.00614929
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4c7ed0
xor ebx, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xb4], ebx
test esi, esi
je 0x4c7385
mov ecx, dword [ebp + 0xc]
push ecx
push esi
mov edx, dword [ebp - 0x30]
lea eax, [ebx + edx]
push eax
call fcn.005bd2f0
mov dword [ebp + 0xc], eax
add ebx, esi
mov dword [ebp - 0xb4], ebx
mov ecx, dword [ebp - 0x34]
push ecx
push 0x1000
push 1
mov edx, dword [ebp - 0x30]
lea eax, [ebx + edx]
push eax
call fcn.00614929
add esp, 0x1c
mov esi, eax
jmp 0x4c7347
lea ecx, [ebp - 0x1ac]
call fcn.004c0600
mov byte [ebp - 4], 0xb
push ebx
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1ac]
call fcn.005b65e0
lea ecx, [ebp - 0x48]
call fcn.004bddb0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x1ac]
call fcn.005b5570
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
xor esi, esi
mov dword [ebp - 0x90], esi
lea ecx, [edi + 0x4d8]
call fcn.004676a0
cmp esi, eax
jge 0x4c7451
push 0x34
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.006100a0
add esp, 0xc
mov dword [ebp - 0x184], 5
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 0x184]
push ecx
push 0
push 0x104b
mov edx, dword [edi + 0x4d8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x4c744e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
jmp 0x4c73de
lea ecx, [edi + 0x4d8]
call fcn.004a1380
push 0xffffffffffffffff
mov eax, dword [edi + 0x4dc]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
mov esi, 0xf
cmp eax, dword [ebp - 0x48]
je 0x4c7ea3
mov ebx, dword [eax + 8]
mov dword [ebp - 0xa8], ebx
mov ecx, ebx
call fcn.005b50f0
mov ecx, ebx
test eax, eax
jne 0x4c7921
push str.Content_Type
call fcn.004bd790
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
mov byte [ebp - 4], 0xf
test eax, eax
je 0x4c7905
push eax
push 0
lea ecx, [ebp - 0x140]
call fcn.004bf120
cmp dword [ebp - 0x12c], 0x10
mov eax, dword [ebp - 0x140]
jae 0x4c74f3
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405830
push 0
push str.text_html
lea ecx, [ebp - 0x18]
call fcn.004144e0
test eax, eax
jne 0x4c76e1
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xd0], al
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xd0]
push edx
mov ecx, ebx
call fcn.005b56a0
xor eax, eax
mov word [ebp - 0x850], ax
push 0x3fe
push eax
lea ecx, [ebp - 0x84e]
push ecx
call fcn.006100a0
add esp, 0xc
lea edx, [ebp - 0x850]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x4c7642
test eax, eax
je 0x4c7642
lea eax, [ebp - 0x850]
push eax
push str._semail.tmp.html
lea ecx, [ebp - 0x24]
push ecx
call fcn.00405ab0
push 0x674758
mov edx, dword [ebp - 0x24]
push edx
call fcn.00614a04
add esp, 0x14
mov esi, eax
test esi, esi
je 0x4c75f3
lea ecx, [edi + 0x4e0]
lea eax, [ebp - 0x24]
push eax
call fcn.004078d0
mov dword [edi + 0x4e4], 1
cmp dword [ebp - 0xbc], 0x10
mov eax, dword [ebp - 0xd0]
jae 0x4c75d4
lea eax, [ebp - 0xd0]
push esi
push 1
mov ecx, dword [ebp - 0xc0]
push ecx
push eax
call fcn.006161f6
push esi
call fcn.00615f4d
push esi
call fcn.0061466b
add esp, 0x18
cmp dword [ebp - 0xbc], 0x10
mov eax, dword [ebp - 0xd0]
jae 0x4c7608
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040aab0
mov byte [ebp - 4], 0x11
lea ecx, [edi + 0x4e8]
push eax
call fcn.004078d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x94]
call fcn.004014a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd0]
jmp 0x4c78e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd0]
call fcn.0041a2e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x140]
call fcn.0041a2e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.004014a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.004be880
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1ac]
call fcn.004c0650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004c4950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push str.text_plain
lea ecx, [ebp - 0x18]
call fcn.004144e0
test eax, eax
jne 0x4c78e5
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x6c], al
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x6c]
push edx
mov ecx, ebx
call fcn.005b56a0
mov eax, dword [ebp - 0x5c]
add eax, eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
mov esi, eax
mov eax, dword [ebp - 0x5c]
lea ecx, [eax*4]
push ecx
push 0
push esi
call fcn.006100a0
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
mov ecx, ebx
call fcn.004bfc70
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x4c776b
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x1c], ecx
jmp 0x4c7774
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], edx
cmp eax, 0x10
mov ebx, dword [ebp - 0x124]
jae 0x4c7785
lea ebx, [ebp - 0x124]
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x124]
call fcn.004bd760
push 0x614ce1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax]
push edx
push ebx
lea eax, [ebp - 0x144]
push eax
call fcn.004bde40
add esp, 0x14
push str.KOI8_R
lea ecx, [ebp - 0x124]
call fcn.004bd730
test eax, eax
jne 0x4c7820
test esi, esi
je 0x4c78c1
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
jae 0x4c77db
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + ecx]
shr edx, 1
push edx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0x5182
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x9c]
call fcn.0040bea0
mov byte [ebp - 4], 0x14
lea ecx, [edi + 0x4e8]
push eax
call fcn.004078d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x9c]
jmp 0x4c78bc
push 0x674730
lea ecx, [ebp - 0x124]
call fcn.004bd730
test eax, eax
jne 0x4c788a
test esi, esi
je 0x4c78c1
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
jae 0x4c7848
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + ecx]
shr edx, 1
push edx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0xa4]
call fcn.0040bea0
mov byte [ebp - 4], 0x15
lea ecx, [edi + 0x4e8]
push eax
call fcn.004078d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa4]
jmp 0x4c78bc
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
jae 0x4c7896
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040aab0
mov byte [ebp - 4], 0x16
lea ecx, [edi + 0x4e8]
push eax
call fcn.004078d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x98]
call fcn.004014a0
push esi
call fcn.0060faf6
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x124]
call fcn.0041a2e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x6c]
call fcn.0041a2e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x140]
call fcn.0041a2e0
cmp dword [ebp - 0x4c], 0
je 0x4c7e89
push 0xffffffffffffffff
jmp 0x4c7e8b
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x140]
call fcn.0041a2e0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
jmp 0x4c747b
call fcn.004bfd30
test al, al
je 0x4c78f4
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.004bfcd0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x78]
add eax, eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
mov esi, eax
mov eax, dword [ebp - 0x78]
lea ecx, [eax*4]
push ecx
push 0
push esi
call fcn.006100a0
add esp, 0x10
push str.Content_Type
mov ecx, ebx
call fcn.004bd7d0
push eax
lea ecx, [ebp - 0x108]
call fcn.0041f6e0
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0xf4]
cmp eax, 0x10
jb 0x4c79a8
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x1c], edx
jmp 0x4c79b1
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x1c], ecx
cmp eax, 0x10
mov ebx, dword [ebp - 0x108]
jae 0x4c79c2
lea ebx, [ebp - 0x108]
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x108]
call fcn.004bd760
push 0x614ce1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax]
push edx
push ebx
lea eax, [ebp - 0x14c]
push eax
call fcn.004bde40
add esp, 0x14
push str.KOI8_R
lea ecx, [ebp - 0x108]
call fcn.004bd730
test eax, eax
jne 0x4c7a34
test esi, esi
je 0x4c7aa6
cmp dword [ebp - 0x74], 0x10
mov eax, dword [ebp - 0x88]
jae 0x4c7a1e
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + ecx]
shr edx, 1
push edx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0x5182
jmp 0x4c7a97
push 0x674730
lea ecx, [ebp - 0x108]
call fcn.004bd730
test eax, eax
jne 0x4c7a74
test esi, esi
je 0x4c7aa6
cmp dword [ebp - 0x74], 0x10
mov eax, dword [ebp - 0x88]
jae 0x4c7a5e
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + ecx]
shr edx, 1
push edx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
jmp 0x4c7a97
cmp dword [ebp - 0x74], 0x10
mov eax, dword [ebp - 0x88]
jae 0x4c7a86
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + ecx]
shr edx, 1
push edx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x14]
call fcn.004017e0
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.00404c30
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x4c7b71
cmp eax, 0xb7
je 0x4c7b71
cmp eax, 0x50
je 0x4c7b71
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x108]
call fcn.0041a2e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.0041a2e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.004014a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.004be880
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1ac]
call fcn.004c0650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004c4950
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014a0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 0xec], bl
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x20]
call fcn.00404c30
push eax
lea ecx, [ebp - 0xec]
call fcn.004be850
push 0x66f168
lea ecx, [ebp - 0xec]
call fcn.004be850
push esi
mov ecx, edi
call fcn.004bd360
push eax
lea ecx, [ebp - 0xec]
call fcn.004be850
push esi
call fcn.0060faf6
add esp, 4
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.00426530
mov esi, eax
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x1b
cmp esi, 0xffffffff
je 0x4c7c2e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00427cb0
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x3c]
call fcn.004078d0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xac]
call fcn.004014a0
xor edx, edx
mov word [ebp - 0x1020], dx
push 0x7ce
push ebx
lea eax, [ebp - 0x101e]
push eax
call fcn.006100a0
add esp, 0xc
mov eax, 0x7d0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1020]
push edx
push ebx
mov eax, dword [ebp - 0x3c]
push eax
push 0xf
push ebx
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov dword [ebp - 0x50], ebx
cmp eax, ebx
jl 0x4c7dea
push 0x700724
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1020]
push edx
lea ecx, [ebp + 0xc]
call fcn.004049b0
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1e
push 0x2c
lea ecx, [ebp + 0xc]
call fcn.00426530
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7dd8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00427cb0
mov byte [ebp - 4], 0x1f
mov eax, dword [eax]
push eax
call fcn.006115cb
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xa0]
call fcn.004014a0
push esi
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00414520
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp + 0xc]
call fcn.004078d0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x8c]
call fcn.004014a0
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x716734]
push ecx
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov esi, eax
test esi, esi
je 0x4c7dd8
push 4
call fcn.00611c8b
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4c7d66
mov ecx, 0x700724
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1e
mov dword [ebp - 0x1c], ebx
jmp 0x4c7d6d
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xd8], 0x10
mov eax, dword [ebp - 0xec]
jae 0x4c7d82
lea eax, [ebp - 0xec]
push eax
push 0x66ea5c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00405ab0
add esp, 0xc
push esi
push 0xffffffffffffffff
mov edx, dword [edi + 0x4dc]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push 3
push 3
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [edi + 0x4d8]
call fcn.004676a0
push eax
push 0xf
lea ecx, [edi + 0x4d8]
call fcn.00417e90
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 0x1b
lea ecx, [ebp + 0xc]
call fcn.004014a0
cmp dword [ebp - 0x50], 0
jne 0x4c7e2b
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0xffffffffffffffff
mov eax, dword [edi + 0x4dc]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0
push eax
push 3
push 3
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [edi + 0x4d8]
call fcn.004676a0
push eax
push 0xb
lea ecx, [edi + 0x4d8]
call fcn.00417e90
cmp dword [ebp - 0xd8], 0x10
mov eax, dword [ebp - 0xec]
jae 0x4c7e40
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.005b4cc0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x3c]
call fcn.004014a0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xec]
call fcn.0041a2e0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x108]
call fcn.0041a2e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.0041a2e0
push 0xffffffffffffffff
jmp 0x4c7e8b
push 1
lea ecx, [edi + 0x428]
call fcn.004c54c0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
jmp 0x4c747b
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.004014a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.004be880
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1ac]
call fcn.004c0650
mov ebx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0060faf6
mov edx, dword [ebp - 0x34]
push edx
call fcn.0061466b
add esp, 8
mov dword [ebp - 4], 7
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x24
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x26
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x28
lea ecx, [edi + 0x50c]
lea eax, [ebp + 0xc]
push eax
call fcn.004bd290
push eax
push ebx
lea ecx, [edi + 0x510]
call fcn.004a2c80
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x50c]
call fcn.004bd2a0
push eax
push ebx
lea ecx, [edi + 0x510]
call fcn.004a2c80
lea edx, [ebp - 0x2c]
push edx
push 2
push ebx
lea ecx, [edi + 0x510]
call fcn.004a2c80
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx - 4], 1
jle 0x4c7f99
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401370
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 4], 1
jle 0x4c7fb0
mov edx, ecx
mov eax, dword [edx - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401370
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 4], 1
jle 0x4c7fc7
mov edx, ecx
mov eax, dword [edx - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401370
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [edi + 0x35c]
call fcn.004bc8f0
lea ecx, [edi + 0x304]
call fcn.004c4180
mov eax, dword [edi + 0x510]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebp - 4], 0x26
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8013
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x24
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c807c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c809f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004c4950
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c80d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c80f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.0061466b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004c4950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004014a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc