Function at 0x10049180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a12d4
mov eax, dword fs:[0]
push eax
mov eax, 0x1204
call fcn.10084330
mov eax, dword [0x100c34c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11b0], edi
cmp dword [edi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x100491d4
mov dword [edi + 0xf8], 3
xor al, al
jmp 0x1004a25d
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x1068], cx
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0
push eax
lea ecx, [ebp - 0x1068]
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
call fcn.10011ff0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
cmovae eax, dword [ebp - 0x1068]
push 0x100ad768
push eax
call fcn.10078359
add esp, 8
test eax, eax
jne 0x1004924a
push 3
push 0x100ad768
jmp 0x1004927b
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
cmovae eax, dword [ebp - 0x1068]
push str.POST
push eax
call fcn.10078359
add esp, 8
test eax, eax
jne 0x1004a214
push 4
push str.POST
lea ecx, [ebp - 0x1068]
call fcn.10012a10
cmp dword [edi], 0
mov ebx, 1
mov dword [ebp - 0x115c], ebx
jne 0x100492c8
cmp dword [edi + 0x128], 8
lea ecx, [edi + 0x114]
jb 0x100492a7
mov ecx, dword [ecx]
sub esp, 0xc
call fcn.100479d0
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x100492c8
call fcn.10021eb0
mov dword [edi + 0xf8], eax
jmp 0x1004a21e
push dword [edi + 0x184]
mov edx, dword [edi + 0x178]
push dword [edi + 0x180]
mov ecx, dword [edi]
push dword [edi + 0x17c]
call fcn.10047ba0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.1007c850
add esp, 0xc
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0x1050], ax
lea eax, [ebp - 0x104e]
push eax
call fcn.1007c850
add esp, 0xc
lea eax, [ebp - 0x1210]
push 0x3c
push 0
push eax
call fcn.1007c850
lea eax, [ebp - 0x420]
lea ecx, [edi + 8]
mov dword [ebp - 0x1200], eax
add esp, 0xc
cmp dword [ecx + 0x14], 8
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1210], 0x3c
mov dword [ebp - 0x11fc], 0x104
mov dword [ebp - 0x11e4], eax
mov dword [ebp - 0x11e0], 0x514
mov dword [ebp - 0x1208], ebx
jb 0x10049380
mov ecx, dword [ecx]
mov edx, dword [edi + 0x18]
lea eax, [ebp - 0x1210]
push eax
push ecx
call fcn.10047c90
add esp, 8
test eax, eax
je 0x1004a220
cmp word [ebp - 0x420], 0
jne 0x100493a9
xor ecx, ecx
jmp 0x100493c1
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100493b2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x20]
call fcn.10012a10
push ecx
push dword [ebp - 0x11f8]
mov ecx, dword [edi]
lea edx, [ebp - 0x420]
call fcn.10047d90
add esp, 8
mov dword [ebp - 0x11a8], eax
test eax, eax
je 0x1004a220
xor ecx, ecx
cmp dword [ebp - 0x1204], 2
mov edx, 0x800000
cmove ecx, edx
cmp dword [ebp - 0x1054], 8
push ecx
lea edx, [ebp - 0x1068]
cmovae edx, dword [ebp - 0x1068]
sub esp, 0xc
mov ecx, eax
push dword [ebp - 0x11e4]
call fcn.10047e90
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x1154], esi
test esi, esi
je 0x1004a207
cmp byte [edi + 4], 0
jne 0x10049470
cmp dword [ebp - 0x1204], 2
jne 0x10049470
lea eax, [ebp - 0x114c]
push 4
push eax
mov edx, 0x1f
mov ecx, esi
mov dword [ebp - 0x114c], 0x3100
call fcn.10047f90
add esp, 8
mov byte [ebp - 0x1141], 0
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
inc ecx
mov dword [ebp - 0x1198], ecx
cmp eax, 3
jae 0x1004a1e0
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x100494c8
cmp dword [edi + 0xdc], 8
lea edx, [edi + 0xc8]
jb 0x100494ad
mov edx, dword [edx]
push ecx
push eax
mov ecx, esi
call fcn.10048090
add esp, 8
test eax, eax
jne 0x100494c8
call fcn.10021eb0
mov dword [edi + 0xf8], eax
cmp dword [edi + 0xb8], 0
jbe 0x1004953e
push str.Cookie:
lea ecx, [ebp - 0x1098]
call fcn.100109a0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0
lea eax, [edi + 0xa8]
push eax
lea ecx, [ebp - 0x1098]
call fcn.10011db0
cmp dword [ebp - 0x1084], 8
push ecx
push dword [ebp - 0x1088]
lea edx, [ebp - 0x1098]
cmovae edx, dword [ebp - 0x1098]
mov ecx, esi
call fcn.10048090
add esp, 8
test eax, eax
jne 0x1004952f
call fcn.10021eb0
mov dword [edi + 0xf8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1098]
call fcn.10010a70
cmp dword [edi + 0xf0], 0
jbe 0x10049658
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movq qword [ebp - 0x11bc], xmm0
push eax
mov dword [ebp - 0x11b4], 0
mov dword [ebp - 0x11bc], 3
call fcn.1007c850
lea eax, [edi + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10049596
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10078a4b
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x11b8], eax
lea eax, [ebp - 0x11bc]
push 0xc
push eax
mov edx, 0x26
mov ecx, esi
call fcn.10047f90
add esp, 8
test eax, eax
jne 0x100495de
call fcn.10021eb0
mov dword [edi + 0xf8], eax
mov eax, dword [edi + 0x140]
test eax, eax
je 0x10049658
cmp dword [edi + 0x144], 8
lea ecx, [edi + 0x130]
jb 0x100495f9
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
mov edx, 0x1002
mov ecx, esi
call fcn.10047f90
add esp, 8
test eax, eax
jne 0x1004961b
call fcn.10021eb0
mov dword [edi + 0xf8], eax
mov eax, dword [edi + 0x158]
test eax, eax
je 0x10049658
cmp dword [edi + 0x15c], 8
lea ecx, [edi + 0x148]
jb 0x10049636
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
mov edx, 0x1003
mov ecx, esi
call fcn.10047f90
add esp, 8
test eax, eax
jne 0x10049658
call fcn.10021eb0
mov dword [edi + 0xf8], eax
sub esp, 0x14
mov ecx, esi
xor bl, bl
call fcn.10048180
add esp, 0x14
test eax, eax
jne 0x100498b4
xorps xmm0, xmm0
lea ecx, [ebp - 0x1184]
movq qword [ebp - 0x1184], xmm0
movq qword [ebp - 0x117c], xmm0
call fcn.10048270
test eax, eax
je 0x1004a1af
mov eax, dword [ebp - 0x1180]
test eax, eax
je 0x10049795
cmp dword [edi + 0x1c], 8
xorps xmm0, xmm0
movq qword [ebp - 0x11d4], xmm0
movq qword [ebp - 0x11cc], xmm0
movq qword [ebp - 0x11c4], xmm0
mov dword [ebp - 0x11d4], 3
mov dword [ebp - 0x11d0], 1
mov dword [ebp - 0x11cc], eax
mov dword [ebp - 0x11c0], 1
mov dword [ebp - 0x11c4], 0
mov dword [ebp - 0x11c8], 0
movq qword [ebp - 0x11a4], xmm0
mov dword [ebp - 0x119c], 0
jb 0x10049713
mov edx, dword [edi + 8]
jmp 0x10049716
lea edx, [edi + 8]
mov ecx, dword [edi]
lea eax, [ebp - 0x11a4]
push eax
lea eax, [ebp - 0x11d4]
push eax
call fcn.10048350
add esp, 8
test eax, eax
je 0x1004986a
lea eax, [ebp - 0x11a4]
push 0xc
push eax
mov edx, 0x26
mov ecx, esi
call fcn.10047f90
add esp, 8
test eax, eax
je 0x1004976c
sub esp, 0x14
mov ecx, esi
call fcn.10048180
add esp, 0x14
movzx ebx, bl
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0x11a0]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x1004977f
push eax
call esi
mov eax, dword [ebp - 0x119c]
test eax, eax
je 0x10049875
push eax
call esi
jmp 0x10049875
mov esi, dword [ebp - 0x117c]
test esi, esi
je 0x10049895
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movq qword [ebp - 0x1190], xmm0
push eax
mov dword [ebp - 0x1188], 0
mov dword [ebp - 0x1190], 3
call fcn.1007c850
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x104
push eax
call fcn.10078a4b
mov esi, dword [ebp - 0x1178]
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x118c], eax
test esi, esi
je 0x1004984a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.1007c850
add esp, 0xc
lea eax, [ebp - 0x628]
push esi
push 0x104
push eax
call fcn.10078a4b
lea eax, [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x1188], eax
mov ecx, dword [ebp - 0x1154]
lea eax, [ebp - 0x1190]
push 0xc
push eax
mov edx, 0x26
call fcn.10047f90
add esp, 8
test eax, eax
jne 0x10049875
call fcn.10021eb0
mov dword [edi + 0xf8], eax
mov eax, dword [ebp - 0x1180]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x10049888
push eax
call esi
mov eax, dword [ebp - 0x117c]
test eax, eax
je 0x10049895
push eax
call esi
mov eax, dword [ebp - 0x1178]
test eax, eax
je 0x100498a6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 0x1154]
test bl, bl
je 0x1004a1ba
mov edx, dword [edi + 0xc0]
test edx, edx
je 0x100498ee
lea eax, [ebp - 0x114c]
push eax
push dword [edi + 0xc4]
mov ecx, esi
mov dword [ebp - 0x114c], 0
call fcn.10048450
add esp, 8
test eax, eax
jne 0x100498ee
call fcn.10021eb0
mov dword [edi + 0xf8], eax
mov ecx, esi
call fcn.10048550
test eax, eax
je 0x1004a1af
push ecx
lea eax, [ebp - 0x1148]
push eax
push 0
push ecx
mov edx, 0x16
mov ecx, esi
mov dword [ebp - 0x1148], 0
call fcn.10048640
add esp, 0x10
mov esi, eax
call fcn.10021eb0
test esi, esi
jne 0x10049935
cmp eax, 0x7a
jne 0x10049cf4
mov eax, dword [ebp - 0x1148]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10077bc8
mov esi, eax
add esp, 4
mov dword [ebp - 0x11ac], esi
test esi, esi
je 0x10049cf4
mov ecx, dword [ebp - 0x1148]
add ecx, ecx
push ecx
push 0
push esi
call fcn.1007c850
add esp, 8
lea eax, [ebp - 0x1148]
push eax
push esi
push ecx
mov ecx, dword [ebp - 0x1154]
mov edx, 0x16
call fcn.10048640
add esp, 0x10
test eax, eax
je 0x10049ceb
lea ebx, [edi + 0x38]
push esi
mov ecx, ebx
call fcn.10010ac0
mov dword [ebp - 0x1168], 0
mov dword [ebp - 0x1164], 0
mov dword [ebp - 0x1160], 0
mov byte [ebp - 4], 2
push 0x100ad6f0
lea ecx, [ebp - 0x1080]
call fcn.100109a0
mov byte [ebp - 4], 3
cmp byte [edi + 0x12c], 0
jne 0x10049a6a
lea ecx, [ebp - 0x10e0]
call fcn.100452a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x10049a0d
push 0xffffffffffffffff
push 0
push eax
call fcn.10011ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10e0]
call fcn.10010a70
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.10047560
add esp, 0x10
test al, al
je 0x10049a6a
mov ecx, dword [ebp - 0x1164]
mov esi, dword [ebp - 0x1168]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10049a6a
lea ecx, [edi + 0x68]
cmp ecx, esi
je 0x10049a6a
push 0xffffffffffffffff
push 0
push esi
call fcn.10011ff0
lea ecx, [ebp - 0x1140]
call fcn.100454b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x10049a8d
push 0xffffffffffffffff
push 0
push eax
call fcn.10011ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1140]
call fcn.10010a70
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.10047560
add esp, 0x10
test al, al
je 0x10049af0
mov ecx, dword [ebp - 0x1164]
mov esi, dword [ebp - 0x1168]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10049af0
cmp dword [esi + 0x14], 8
jb 0x10049ae1
mov esi, dword [esi]
push esi
call fcn.1007a018
add esp, 4
mov dword [edi + 0x8c], eax
lea ecx, [ebp - 0x1128]
call fcn.100456c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x10049b13
push 0xffffffffffffffff
push 0
push eax
call fcn.10011ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1128]
call fcn.10010a70
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.10047560
add esp, 0x10
test al, al
je 0x10049b73
mov ecx, dword [ebp - 0x1164]
mov esi, dword [ebp - 0x1168]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10049b73
lea ecx, [edi + 0x160]
cmp ecx, esi
je 0x10049b73
push 0xffffffffffffffff
push 0
push esi
call fcn.10011ff0
lea ecx, [ebp - 0x1110]
call fcn.10045890
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x10049b96
push 0xffffffffffffffff
push 0
push eax
call fcn.10011ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1110]
call fcn.10010a70
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.10047560
add esp, 0x10
test al, al
je 0x10049cc7
mov ecx, dword [ebp - 0x1164]
mov ebx, dword [ebp - 0x1168]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1158], eax
je 0x10049cc7
xor esi, esi
test eax, eax
je 0x10049c42
dec eax
mov dword [ebp - 0x1150], eax
lea eax, [edi + 0x90]
mov dword [ebp - 0x114c], eax
mov edi, eax
jmp 0x10049c10
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.10011db0
cmp esi, dword [ebp - 0x1150]
je 0x10049c30
push 0x100b195c
mov ecx, edi
call fcn.10010b10
inc esi
add ebx, 0x18
cmp esi, dword [ebp - 0x1158]
jb 0x10049c10
mov edi, dword [ebp - 0x11b0]
push 0x100ad9f8
lea ecx, [ebp - 0x10c8]
call fcn.100109a0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x10c8]
lea esi, [edi + 0x90]
push eax
mov edx, esi
lea ecx, [ebp - 0x10f8]
call fcn.10048930
add esp, 4
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.10010a30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10f8]
call fcn.10010a70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c8]
call fcn.10010a70
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x10049cc7
cmp dword [esi + 0x14], 8
jb 0x10049cb1
mov eax, dword [esi]
jmp 0x10049cb3
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x3b
je 0x10049cc7
push 0x100b1964
mov ecx, esi
call fcn.10010b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1080]
call fcn.10010a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1168]
call fcn.10023e70
mov esi, dword [ebp - 0x11ac]
push esi
call fcn.10077bd1
add esp, 4
mov ebx, dword [ebp - 0x1154]
push ecx
lea eax, [ebp - 0x1148]
push eax
push 0
push ecx
mov edx, 0x13
mov ecx, ebx
mov dword [ebp - 0x1148], 0
call fcn.10048640
add esp, 0x10
mov esi, eax
call fcn.10021eb0
test esi, esi
jne 0x10049d2e
cmp eax, 0x7a
jne 0x10049d98
mov eax, dword [ebp - 0x1148]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10077bc8
mov esi, eax
add esp, 4
test esi, esi
je 0x10049d98
mov ecx, dword [ebp - 0x1148]
add ecx, ecx
push ecx
push 0
push esi
call fcn.1007c850
add esp, 8
lea eax, [ebp - 0x1148]
push eax
push esi
push ecx
mov edx, 0x13
mov ecx, ebx
call fcn.10048640
add esp, 0x10
test eax, eax
je 0x10049d8f
push esi
lea ecx, [edi + 0xfc]
call fcn.10010ac0
push esi
call fcn.10077bd1
add esp, 4
mov eax, dword [edi + 0x80]
mov ecx, 0x2800
xor ebx, ebx
mov dword [ebp - 0x1150], ecx
test eax, eax
je 0x10049dbe
push eax
call fcn.10077bd1
add esp, 4
mov dword [edi + 0x80], ebx
push 0x2800
call fcn.10077bc8
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x1004a1ce
push 0x2800
push 0
push eax
call fcn.1007c850
add esp, 0xc
lea esp, [esp]
mov ecx, dword [ebp - 0x1154]
lea edx, [ebp - 0x1148]
mov dword [ebp - 0x1148], 0
call fcn.10048740
test eax, eax
je 0x10049f59
push ebx
mov ecx, edi
call fcn.1004a300
mov eax, dword [ebp - 0x1148]
inc eax
push eax
call fcn.10077bc8
mov esi, eax
add esp, 4
test esi, esi
je 0x10049f64
mov ecx, dword [ebp - 0x1148]
inc ecx
push ecx
push 0
push esi
call fcn.1007c850
mov ecx, dword [ebp - 0x1154]
add esp, 0xc
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x1148]
mov edx, esi
mov dword [ebp - 0x1158], 0
call fcn.10048830
add esp, 8
test eax, eax
je 0x10049f4e
mov ecx, dword [ebp - 0x1158]
mov edx, dword [ebp - 0x1150]
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x10049ef0
mov eax, dword [edi + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1150], edx
call fcn.10077bc8
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x10049f73
mov ecx, dword [ebp - 0x1150]
push ecx
push 0
push eax
call fcn.1007c850
add esp, 0xc
push ebx
push dword [ebp - 0x114c]
push dword [edi + 0x80]
call fcn.1007bf30
add esp, 0xc
push dword [ebp - 0x114c]
call fcn.10077bd1
mov ecx, dword [ebp - 0x1158]
add esp, 4
mov eax, dword [edi + 0x80]
push ecx
add eax, ebx
push esi
push eax
call fcn.1007bf30
add ebx, dword [ebp - 0x1158]
add esp, 0xc
cmp byte [edi + 0x188], 0
je 0x10049f4e
push 2
push 0
push 0
push dword [edi + 0x18c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1194]
push eax
push dword [ebp - 0x1158]
mov dword [ebp - 0x1194], 0
push esi
push dword [edi + 0x18c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10049f7f
push esi
call fcn.10077bd1
add esp, 4
jmp 0x10049f64
call fcn.10021eb0
mov dword [edi + 0xf8], eax
cmp dword [ebp - 0x1148], 0
ja 0x10049df0
jmp 0x10049f87
mov eax, dword [ebp - 0x114c]
mov dword [edi + 0x80], eax
xor al, al
mov dword [ebp - 0x115c], eax
push ebx
mov ecx, edi
call fcn.1004a300
mov dword [edi + 0x84], ebx
lea eax, [edi + 0x68]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov esi, 1
mov dword [ebp - 0x1150], ebx
mov dword [ebp - 0x114c], esi
jb 0x10049fb3
mov eax, dword [eax]
push 5
push 0x100b1968
push eax
call fcn.10078557
add esp, 0xc
test eax, eax
jne 0x10049fda
mov ebx, 0xfde9
xor esi, esi
mov dword [ebp - 0x1150], ebx
mov dword [ebp - 0x114c], esi
mov eax, dword [edi + 0x84]
push 0
push 0
inc eax
push eax
push dword [edi + 0x80]
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call ebx
mov esi, eax
test esi, esi
jg 0x1004a02e
mov eax, dword [edi + 0x84]
push 0
push 0
inc eax
push eax
push dword [edi + 0x80]
mov dword [ebp - 0x1150], 0
push 1
push 0
mov dword [ebp - 0x114c], 1
call ebx
mov esi, eax
test esi, esi
jle 0x1004a096
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10077bc8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004a096
lea ecx, [esi + esi]
push ecx
push 0
push ebx
call fcn.1007c850
mov eax, dword [edi + 0x84]
add esp, 0xc
inc eax
push esi
push ebx
push eax
push dword [edi + 0x80]
push dword [ebp - 0x114c]
push dword [ebp - 0x1150]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1004a08d
push ebx
lea ecx, [edi + 0x50]
call fcn.10010ac0
push ebx
call fcn.10077bd1
add esp, 4
mov edx, 0x100ad768
lea ecx, [ebp - 0x1068]
mov byte [ebp - 0x1141], 1
call fcn.1004c2a0
test al, al
je 0x1004a1f6
push str._html_
lea ecx, [ebp - 0x10b0]
call fcn.100109a0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1174], 0
mov dword [ebp - 0x1170], 0
mov dword [ebp - 0x116c], 0
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x1174]
push eax
lea esi, [edi + 0x50]
push esi
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.10047560
add esp, 0x10
test al, al
je 0x1004a189
mov ecx, dword [ebp - 0x1170]
sub ecx, dword [ebp - 0x1174]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004a189
push str.__html_
lea ecx, [ebp - 0x10b0]
call fcn.10010ac0
push ecx
lea eax, [ebp - 0x1174]
push eax
push esi
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.10047560
add esp, 0x10
test al, al
je 0x1004a178
mov ecx, dword [ebp - 0x1170]
sub ecx, dword [ebp - 0x1174]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1004a189
mov dword [edi + 0xf8], 0xd
mov byte [ebp - 0x1141], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1174]
call fcn.10023e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10b0]
call fcn.10010a70
mov esi, dword [ebp - 0x1154]
jmp 0x1004a1ba
call fcn.10021eb0
mov dword [edi + 0xf8], eax
cmp byte [ebp - 0x1141], 0
jne 0x1004a1f6
mov ecx, dword [ebp - 0x1198]
jmp 0x10049480
xor bl, bl
xor eax, eax
cmp byte [ebp - 0x1141], al
movzx ebx, bl
cmove ebx, eax
jmp 0x1004a1fc
mov ebx, dword [ebp - 0x115c]
xor eax, eax
cmp byte [ebp - 0x1141], al
movzx ebx, bl
cmove ebx, eax
jmp 0x1004a1fc
mov ebx, dword [ebp - 0x115c]
mov ecx, dword [ebp - 0x1154]
call fcn.10047ac0
mov ecx, dword [ebp - 0x11a8]
call fcn.10047ac0
jmp 0x1004a220
mov dword [edi + 0xf8], 0x57
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1054], 8
jb 0x1004a23e
push dword [ebp - 0x1068]
call fcn.10076e4c
add esp, 4
xor eax, eax
mov word [ebp - 0x1068], ax
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10076e3d
mov esp, ebp
pop ebp
ret 8