Function at 0x41ad70
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
mov dword [ebp - 0x16c], eax
mov esi, 0x4ea412
mov edi, dword [0x4d4d14]
mov dword [ebp - 0x1c], 0x41bd15
mov dword [ebp - 0x20], 0x41b663
and dword [ebp - 8], 0
push 0x4002
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp byte [esi], 6
jne 0x41ae59
xor eax, eax
call fcn.0041ab68
pushal
call fcn.0041ac90
mov ecx, dword [0x667ea8]
lea eax, [edi + 0x14131]
xor edx, edx
cmp byte [eax + edx], 0
je 0x41addb
bts dword [ebx], edx
inc edx
cmp dh, 2
jb 0x41add2
add eax, 0x408
loop 0x41add0
mov eax, ebx
push 0x40
pop edx
call esi
lea eax, [edi + 0x1412d]
mov dl, 4
mov ebx, fcn.0041ab10
call ebx
lea eax, [edi + 0x14335]
mov dl, 8
call ebx
xor ecx, ecx
bt dword [ebp - 0x157], ecx
jae 0x41ae21
lea eax, [edi + ecx + 0x14131]
mov dl, 1
call fcn.0041ab10
inc ecx
cmp ch, 2
jb 0x41ae0a
lea eax, [ebp - 0x11]
xor edx, edx
inc edx
call esi
popal
mov dword [ebp - 0x18], 0x9a
cmp byte [ebp - 4], 0
jne 0x41b663
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 0xc
jne 0x41aef7
xor eax, eax
call fcn.0041ab68
mov ax, 0x27
call fcn.00430e48
shl eax, 0x18
mov edx, dword [0x4d4bec]
add eax, dword [edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0041aabc
mov eax, dword [edi]
add eax, 0x1413b
mov edx, 0x26
call fcn.0041aabc
mov ebx, dword [0x4d4bec]
mov ebx, dword [ebx]
dec ebx
test ebx, ebx
jl 0x41aedf
inc ebx
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [edi]
lea eax, [edx + eax*8 + 0x1412d]
mov edx, 6
call fcn.0041aabc
inc dword [ebp - 0x168]
dec ebx
jne 0x41aeb6
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 0xd
jne 0x41b005
mov al, 1
call fcn.0041ab68
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0041aae4
mov eax, dword [edi]
add eax, 0x1413b
mov edx, 0x26
call fcn.0041aae4
mov ebx, dword [ebp - 0x18]
and ebx, 0xffffff
dec ebx
test ebx, ebx
jl 0x41af67
inc ebx
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [edi]
lea eax, [edx + eax*8 + 0x1412d]
mov edx, 6
call fcn.0041aae4
inc dword [ebp - 0x168]
dec ebx
jne 0x41af3e
mov eax, dword [ebp - 4]
and eax, 0xff
test ax, ax
jbe 0x41af80
mov dword [ebp - 0x18], 0x99
jmp 0x41b663
mov eax, dword [ebp - 0x18]
and eax, 0xffffff
mov edx, dword [0x4d4bec]
mov dword [edx], eax
mov ax, 0x442
call fcn.00431270
mov eax, dword [0x4d4bec]
cmp dword [eax], 1
jbe 0x41afc2
mov eax, dword [0x4d4bec]
mov eax, dword [eax]
add eax, 0xa
mov edx, dword [0x4d4be0]
mov dword [edx + 0x7704], eax
mov ax, 0x261
call fcn.00431270
call fcn.0040f0b8
lea eax, [ebp - 0x137]
mov dx, 0x8a96
call fcn.00430db8
mov edx, dword [ebp - 0x18]
shr edx, 0x18
inc edx
call fcn.00430c44
mov dx, 0x443
call fcn.00430cb8
mov al, 0x2c
call fcn.00416fc4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 0xa
jne 0x41b092
xor eax, eax
call fcn.0041ab68
mov ax, 0x27
call fcn.00430e48
shl eax, 0x18
mov edx, dword [0x4d4d8c]
add eax, dword [edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0041aabc
mov ebx, dword [0x4d4d8c]
mov ebx, dword [ebx]
dec ebx
test ebx, ebx
jl 0x41b07a
inc ebx
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [edi]
lea eax, [edx + eax*8 + 0x1412d]
mov edx, 0xe
call fcn.0041aabc
inc dword [ebp - 0x168]
dec ebx
jne 0x41b051
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 0xb
jne 0x41b18f
mov al, 1
call fcn.0041ab68
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0041aae4
mov ebx, dword [ebp - 0x18]
and ebx, 0xffffff
dec ebx
test ebx, ebx
jl 0x41b0f1
inc ebx
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x168]
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [edi]
lea eax, [edx + eax*8 + 0x1412d]
mov edx, 0xe
call fcn.0041aae4
inc dword [ebp - 0x168]
dec ebx
jne 0x41b0c8
mov eax, dword [ebp - 4]
and eax, 0xff
test ax, ax
jbe 0x41b10a
mov dword [ebp - 0x18], 0x99
jmp 0x41b663
mov eax, dword [ebp - 0x18]
and eax, 0xffffff
mov edx, dword [0x4d4d8c]
mov dword [edx], eax
mov ax, 0x39f
call fcn.00431270
mov eax, dword [0x4d4d8c]
cmp dword [eax], 1
jbe 0x41b14c
mov eax, dword [0x4d4d8c]
mov eax, dword [eax]
add eax, 0xa
mov edx, dword [0x4d4be0]
mov dword [edx + 0xb584], eax
mov ax, 0x3a1
call fcn.00431270
call fcn.0040f090
lea eax, [ebp - 0x137]
mov dx, 0x88bc
call fcn.00430db8
mov edx, dword [ebp - 0x18]
shr edx, 0x18
inc edx
call fcn.00430c44
mov dx, 0x3b2
call fcn.00430cb8
mov al, 0x2c
call fcn.00416f48
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 4
jne 0x41b21e
xor eax, eax
call fcn.0041ab68
pushal
call fcn.0041ac90
xor eax, eax
lea edx, [eax + 0x20]
mov ecx, 0x7000fffe
movzx ebx, byte [edi + eax + 0x1402d]
cmp ebx, 0x1f
ja 0x41b1d0
bt ecx, ebx
jae 0x41b1d0
bts dword [ebp - 0x157], eax
mov byte [edx + ebp - 0x157], bl
inc edx
inc al
jne 0x41b1af
lea eax, [ebp - 0x157]
call esi
popal
mov eax, fcn.0041ab10
call fcn.0041ac3c
lea eax, [ebp - 0x11]
mov edx, 1
call fcn.0041aabc
cmp byte [ebp - 4], 0
je 0x41b206
mov dword [ebp - 0x18], 0x9a
jmp 0x41b663
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 3
jne 0x41b269
xor eax, eax
call fcn.0041ab68
mov eax, dword [0x4d4d48]
mov edx, dword [eax]
add edx, edx
mov eax, dword [0x4d4cec]
mov eax, dword [eax]
call fcn.0041aabc
cmp byte [ebp - 4], 0
je 0x41b251
mov dword [ebp - 0x18], 0x9a
jmp 0x41b663
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
cmp byte [esi], 1
ja 0x41b415
mov al, 2
call fcn.0041ab68
lea eax, [ebp - 0x24]
call fcn.00430838
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41b33f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov edx, dword [0x4d4c9c]
add edx, 0x800
mov eax, dword [0x4d4d1c]
add eax, 0x800
call fcn.00430700
test al, al
je 0x41b2d6
mov edx, dword [0x4d4c9c]
mov eax, dword [0x4d4d1c]
call fcn.00430700
test al, al
jne 0x41b2fd
mov dl, 0x1e
mov eax, 0x9e009f
call fcn.0041a0ac
test al, al
jne 0x41b2fd
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x41bd1e
push 0x800
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x2c], eax
push 0x800
push 0x4e93a8
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_RtlMoveMemory
push 0
mov dl, 0x5f
mov eax, dword [ebp - 0x2c]
call fcn.00430e24
push eax
push 0x4e93a8
call sub.kernel32.dll_CopyFileW
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GlobalFree
mov al, 2
call fcn.0041a084
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41b35b
mov dword [ebp - 0x18], 0x98
jmp 0x41b663
push 0x1000
mov eax, dword [0x4d4c9c]
push eax
mov eax, dword [0x4d4d1c]
push eax
call sub.kernel32.dll_RtlMoveMemory
and dword [ebp - 4], 0
mov eax, 0x4caea4
mov edx, 0xb
call fcn.0041aabc
mov byte [ebp - 0x11], 0
mov eax, ebx
mov edx, dword [ebp - 0x28]
call fcn.0041aabc
movzx eax, byte [ebp - 0x11]
not al
movzx eax, al
shl eax, 8
movzx edx, byte [ebp - 0x11]
add eax, edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0041aabc
cmp byte [ebp - 4], 0
je 0x41b3c6
mov dword [ebp - 0x18], 0x9a
jmp 0x41b663
call fcn.0041aa88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4d4cc0]
or byte [eax], 1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, 0x1a4
call fcn.00431004
mov eax, dword [0x4d4cc0]
cmp byte [eax], 2
jb 0x41bbeb
mov eax, 1
call fcn.00431004
jmp 0x41bbeb
cmp byte [esi], 7
jne 0x41b51f
mov al, 1
call fcn.0041ab68
pushal
push 0x40
pop ebx
call fcn.0041acd8
lea eax, [esi + 0x100]
mov dl, 4
call ebx
lea eax, [esi + 0x308]
mov dl, 8
call ebx
xor ecx, ecx
bt dword [ebp - 0x157], ecx
jae 0x41b458
lea eax, [esi + ecx + 0x104]
mov dl, 1
call ebx
inc ecx
cmp ch, 2
jb 0x41b444
popal
call fcn.0041ad30
mov eax, dword [0x4d4be0]
mov eax, dword [eax + 0x77e]
mov edx, dword [0x4d4d6c]
mov dword [edx], eax
mov eax, dword [0x4d4be0]
mov eax, dword [eax + 0x7b0]
mov edx, dword [0x4d4d88]
mov dword [edx], eax
mov eax, dword [0x4d4d8c]
mov eax, dword [eax]
dec eax
mov edx, dword [0x4d4be0]
mov dword [edx + 0x1304], eax
mov eax, dword [0x4d4be0]
xor edx, edx
mov dword [eax + 0x1317], edx
movzx edx, byte [0x4ea413]
shr edx, 4
mov ax, 0x27
call fcn.00430e54
mov ax, 0x33b
call fcn.0045a044
movzx eax, byte [0x4ea413]
and al, 0xf
movzx eax, al
mov edx, 2
sub edx, eax
lea eax, [ebp - 0x157]
call fcn.00430c44
mov edx, eax
mov ax, 0x33b
call fcn.00430c80
xor edx, edx
mov ax, 0x33b
call fcn.00430ccc
call fcn.0040ed90
mov eax, dword [0x4d4c54]
mov byte [eax], 1
mov al, 0x63
call fcn.00418ae0
mov ax, 0x27
call fcn.00431270
xor eax, eax
call fcn.0040edcc
cmp byte [esi], 5
jne 0x41b649
mov al, 1
call fcn.0041ab68
pushal
push 0x20
pop ebx
call fcn.0041acd8
push ebx
xor ebx, ebx
bt dword [ebp - 0x157], ebx
jae 0x41b54c
xor edx, edx
inc edx
lea eax, [esi + ebx]
call edi
inc bl
jne 0x41b53b
pop eax
call fcn.0041ac3c
popal
call fcn.0041ad30
mov eax, dword [0x4d4be0]
mov eax, dword [eax + 0x77e]
mov edx, dword [0x4d4d6c]
mov dword [edx], eax
mov eax, dword [0x4d4be0]
mov eax, dword [eax + 0x7b0]
mov edx, dword [0x4d4d88]
mov dword [edx], eax
mov eax, dword [0x4d4d8c]
mov eax, dword [eax]
add eax, 0xa
mov edx, dword [0x4d4be0]
mov dword [edx + 0x12d2], eax
movzx edx, byte [0x4ea413]
shr edx, 4
mov ax, 0x27
call fcn.00430e54
mov ax, 0x326
call fcn.0045a044
movzx eax, byte [0x4ea413]
and al, 0xf
movzx eax, al
mov edx, 2
sub edx, eax
lea eax, [ebp - 0x157]
call fcn.00430c44
mov edx, eax
mov ax, 0x326
call fcn.00430c80
xor edx, edx
mov ax, 0x326
call fcn.00430ccc
mov ax, 0x324
call fcn.0045a044
xor edx, edx
mov eax, dword [0x4e917c]
cmp byte [eax + edx + 0x1402d], 0
je 0x41b61d
lea eax, [ebp - 0x157]
and dword [eax], 0
push edx
call fcn.00430c44
mov edx, eax
mov ax, 0x324
call fcn.00430c80
pop edx
inc dl
jne 0x41b5f3
xor edx, edx
mov ax, 0x324
call fcn.00430ccc
mov eax, dword [0x4d4c54]
mov byte [eax], 1
mov al, 0x43
call fcn.00418ae0
mov ax, 0x27
call fcn.00431270
call fcn.00418a8c
cmp byte [esi], 0x82
jne 0x41bd15
mov al, 1
call fcn.0041ab68
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41b722
mov eax, dword [ebp - 0x18]
add eax, 0x960000
mov dl, 0x21
call fcn.0041a0ac
cmp dword [ebp - 0x10], 0xffffffff
je 0x41b681
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [esi], 1
ja 0x41b698
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalFree
cmp byte [esi], 3
je 0x41bd1e
cmp dword [ebp - 0x16c], 0x249
jl 0x41bd1e
cmp dword [ebp - 0x16c], 0x24d
jg 0x41bd1e
push 0x1000
mov eax, dword [0x4d4c68]
push eax
mov eax, dword [0x4d4c9c]
push eax
call sub.kernel32.dll_RtlMoveMemory
sub dword [ebp - 0x16c], 0x248
mov edx, 5
sub edx, dword [ebp - 0x16c]
shl edx, 0xc
push edx
mov eax, dword [ebp - 0x16c]
shl eax, 9
mov edx, dword [0x4d4c68]
lea edx, [edx + eax*8 + 0x1000]
push edx
mov edx, dword [0x4d4c68]
lea eax, [edx + eax*8]
push eax
call sub.kernel32.dll_RtlMoveMemory
xor eax, eax
call fcn.0041c320
jmp 0x41bd1e
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xd
jae 0x41b743
mov dword [ebp - 0x18], 0x9b
jmp 0x41b663
mov ax, 0x20d
call fcn.004312f4
test eax, eax
jbe 0x41b851
mov eax, dword [ebp - 0x28]
add eax, 0x2710
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov edx, dword [0x4d4c38]
mov dword [edx], eax
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
mov edx, dword [ebp - 0x28]
call fcn.0041aae4
cmp byte [ebp - 4], 0
je 0x41b79a
mov dword [ebp - 0x18], 0x99
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x41b663
cmp dword [ebp - 0x28], 0x14
jae 0x41b7b9
mov dword [ebp - 0x18], 0x9b
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x41b663
mov dword [ebp - 0x18], 0x9b
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
cmp dword [eax], 0x65726946
je 0x41b7e1
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x41b663
mov eax, dword [0x4d4c38]
mov eax, dword [eax]
cmp word [eax + 4], 0x6178
jne 0x41b7cf
mov edx, dword [0x4edb48]
mov eax, dword [edx + 6]
xor ax, 0xaaaa
add al, ah
add al, 0xf3
jne 0x41b7cf
mov dword [ebp - 0x18], 0x5f3
mov eax, dword [edx + 8]
sub ax, word [ebp - 0x28]
mov ecx, 0x4edb3c
push 0x50
pop dword [ecx]
cmp ax, 2
ja 0x41b7cf
jne 0x41b82f
add dword [ecx], 8
mov ah, byte [edx + 0xa]
cmp ah, 6
ja 0x41b7cf
add al, ah
mov byte [0x4edb4c], al
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1a4
call fcn.00431004
call fcn.00421338
jmp 0x41bd1e
lea eax, [ebp - 0x37]
mov edx, 0xb
call fcn.0041aae4
cmp byte [ebp - 4], 0
je 0x41b870
mov dword [ebp - 0x18], 0x99
jmp 0x41b663
mov edx, 0x4caea4
mov eax, dword [ebp - 0x37]
cmp eax, dword [edx]
jne 0x41b892
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 3]
jne 0x41b892
mov eax, dword [ebp - 0x30]
or ax, ax
je 0x41b892
cmp ax, word [ebp - 0x2e]
jae 0x41b89e
mov dword [ebp - 0x18], 0x530
jmp 0x41b663
movzx eax, word [ebp - 0x2e]
cmp ax, word [0x4caead]
jbe 0x41b8e6
mov eax, dword [0x4d4d08]
mov dx, 0x8533
call fcn.00430db8
movzx edx, word [0x4caead]
call fcn.00430c44
mov dx, 0x534
call fcn.00430db8
mov edx, dword [0x4d4d28]
mov dword [edx + 0x930], eax
mov dword [ebp - 0x18], 0x24c
jmp 0x41b663
cmp dword [ebp - 0x16c], 0x39d
sete al
mov byte [ebp - 0x159], al
movzx eax, word [ebp - 0x30]
cmp ax, word [0x4caeab]
jbe 0x41b952
cmp byte [ebp - 0x159], 0
jne 0x41b952
mov eax, dword [0x4d4d08]
mov dx, 0x8531
call fcn.00430db8
movzx edx, word [0x4caead]
call fcn.00430c44
mov dx, 0x532
call fcn.00430db8
mov edx, dword [0x4d4d28]
mov dword [edx + 0x930], eax
mov dl, 0x2e
mov eax, 0x96024c
call fcn.0041a0ac
test al, al
je 0x41b672
mov eax, dword [ebp - 0x28]
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x28]
sub edx, 2
sub edx, 0xb
mov eax, ebx
call fcn.0041aae4
movzx eax, byte [ebp - 0x11]
mov byte [ebp - 0x158], al
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0041aae4
cmp byte [ebp - 4], 0
je 0x41b9a2
mov dword [ebp - 0x18], 0x99
push ebx
call sub.kernel32.dll_GlobalFree
jmp 0x41b663
movzx eax, byte [ebp - 0x158]
cmp al, byte [ebp - 0x2c]
jne 0x41b9c1
movzx eax, byte [ebp - 0x158]
not al
mov edx, dword [ebp - 0x2c]
shr edx, 8
cmp al, dl
je 0x41b9d3
push ebx
call sub.kernel32.dll_GlobalFree
mov dword [ebp - 0x18], 0x9b
jmp 0x41b663
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x159], 0
jbe 0x41ba1c
push 0x2800000
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x160], eax
push 0x2800000
mov eax, dword [0x4d4d20]
push eax
mov eax, dword [ebp - 0x160]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [0x4d4be4]
movzx eax, byte [eax]
mov byte [ebp - 0x161], al
mov eax, ebx
call fcn.004307a4
xor eax, eax
imul edx, eax, 0x11
cmp byte [edx + 0x678945], 3
jne 0x41ba45
shl eax, 0x14
mov byte [eax + 0x698fa7], 1
mov byte [eax + 0x6990a7], 1
shr eax, 0x14
inc eax
cmp eax, 0x10
jb 0x41ba25
call fcn.00414624
cmp word [ebp - 0x30], 3
jae 0x41ba61
call fcn.0041a9c8
call fcn.00422d30
cmp byte [ebp - 0x159], 0
jbe 0x41bb73
pushal
xor eax, eax
call fcn.0042ab64
mov byte [ebp - 0x158], al
xor ebx, ebx
mov edi, 0x2e96f94
mov byte [edi + ebx], bh
imul eax, ebx, 0x11
mov esi, 0x678934
cmp byte [esi + eax + 0x11], bh
je 0x41baa6
mov eax, ebx
call fcn.00424410
or byte [edi + ebx], al
jne 0x41baa6
inc byte [ebp - 0x159]
inc ebx
cmp ebx, 0xf
jbe 0x41ba83
mov edi, dword [ebp - 0x160]
pushal
mov ecx, 0xa00000
sub edi, esi
lodsd eax, dword [esi]
xchg dword [edi + esi - 4], eax
mov dword [esi - 4], eax
loop 0x41baba
popal
movzx eax, byte [ebp - 0x161]
mov byte [0x4d4a1a], al
imul eax, eax, 0x11
mov bl, byte [edi + eax + 0x11]
dec bl
cmp bl, 1
ja 0x41baf6
mov bl, byte [esi + eax + 0x11]
dec bl
cmp bl, 1
ja 0x41baf6
push edi
call fcn.0041c0d4
dec al
jne 0x41bb5d
jmp 0x41bb6d
xor ebx, ebx
imul edx, ebx, 0x11
cmp byte [esi + edx + 0x11], bh
je 0x41bb1c
mov eax, 0x96089d
cmp byte [edi + edx + 0x11], bh
jne 0x41bb48
mov eax, ebx
call fcn.00424410
or eax, eax
mov eax, 0x96089e
je 0x41bb48
inc ebx
cmp ebx, 0xf
jbe 0x41baf8
mov eax, 0x96089f
cmp byte [ebp - 0x159], 1
ja 0x41bb48
xor eax, eax
call fcn.0042ab64
dec al
js 0x41bb51
cmp byte [ebp - 0x158], bh
je 0x41bb51
mov eax, 0x9608a0
mov dl, 1
call fcn.0041a0ac
jmp 0x41bb5d
call fcn.00430928
mov eax, edi
call fcn.0041a8b0
push edi
call sub.kernel32.dll_GlobalFree
mov eax, 0x1a4
call fcn.00431004
popal
jmp 0x41bd1e
mov eax, dword [0x4d4cc0]
mov byte [eax], 1
mov eax, dword [0x4d4be8]
cmp dword [eax], 0
setne dl
mov ax, 0x15
call fcn.004309cc
mov eax, dword [0x4d4d20]
movzx eax, byte [eax]
mov edx, dword [0x4d4be4]
mov byte [edx], al
call fcn.004241f0
call fcn.00424210
mov edx, dword [0x4d4d20]
movzx edx, byte [edx]
mov ax, 7
call fcn.00430e54
xor edx, edx
mov ax, 5
call fcn.00430e54
call fcn.0042409c
push 0x1000
mov eax, dword [0x4d4c9c]
push eax
mov eax, dword [0x4d4d1c]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov eax, 0x1a4
call fcn.00431004
push 0x1000
mov eax, dword [0x4d4c9c]
push eax
mov eax, dword [0x4d4c68]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov byte [ebp - 0x158], 1
mov dword [ebp - 0x10], 1
mov ebx, dword [0x4d4c68]
add ebx, 0x1800
mov edx, dword [0x4d4c9c]
add edx, 0x800
mov eax, ebx
call fcn.00430700
test al, al
je 0x41bc47
mov edx, dword [0x4d4c9c]
lea eax, [ebx - 0x800]
call fcn.00430700
test al, al
jne 0x41bc7e
movzx eax, byte [ebp - 0x158]
cmp eax, dword [ebp - 0x10]
je 0x41bc78
push 0x1000
lea eax, [ebx - 0x800]
push eax
movzx eax, byte [ebp - 0x158]
shl eax, 9
mov edx, dword [0x4d4c68]
lea eax, [edx + eax*8]
push eax
call sub.kernel32.dll_RtlMoveMemory
inc byte [ebp - 0x158]
inc dword [ebp - 0x10]
add ebx, 0x1000
cmp dword [ebp - 0x10], 6
jne 0x41bc1b
push 0x5000
mov eax, dword [0x4d4c68]
push eax
mov eax, dword [0x4d4c68]
add eax, 0x1000
push eax
call sub.kernel32.dll_RtlMoveMemory
call fcn.004306b0
call fcn.0041d3a8
mov eax, dword [0x4d4d20]
cmp byte [eax + 0x26c74c8], 0
jne 0x41bd10
mov eax, dword [0x4d4d20]
inc byte [eax + 0x26c74c8]
pushal
xor ebx, ebx
mov edi, 0x678945
cmp byte [edi], bh
je 0x41bd06
xor esi, esi
cmp dword [edi + esi - 0xd], 0xb
jne 0x41bd00
mov ecx, esi
shl ecx, 0xc
mov edx, ebx
shl edx, 0x14
mov eax, dword [ecx + edx + 0x688e70]
shl ecx, 4
lea edx, [edx + ecx + 0x678e8f]
call fcn.004145f8
inc esi
cmp esi, 0xb
jbe 0x41bcd9
add edi, 0x11
inc ebx
cmp ebx, 0xf
jbe 0x41bcd3
popal
call fcn.00430350
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalFree
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret