Function at 0x458180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a82c4
mov eax, dword fs:[0]
push eax
mov eax, 0x1204
call fcn.00490ab0
mov eax, dword [0x4c9860]
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 esi, ecx
mov dword [ebp - 0x11b0], esi
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x4581d4
mov dword [esi + 0xf8], 3
xor al, al
jmp 0x45925f
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.0040bd60
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
cmovae eax, dword [ebp - 0x1068]
push 0x4b35ac
push eax
call fcn.0047f8fe
add esp, 8
test eax, eax
jne 0x45824a
push 3
push 0x4b35ac
jmp 0x45827b
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
cmovae eax, dword [ebp - 0x1068]
push str.POST
push eax
call fcn.0047f8fe
add esp, 8
test eax, eax
jne 0x459216
push 4
push str.POST
lea ecx, [ebp - 0x1068]
call fcn.0040c0d0
cmp dword [esi], 0
mov ebx, 1
mov dword [ebp - 0x115c], ebx
jne 0x4582c9
cmp dword [esi + 0x128], 8
lea ecx, [esi + 0x114]
jb 0x4582a7
mov ecx, dword [ecx]
sub esp, 0xc
call fcn.00456f90
add esp, 0xc
mov dword [esi], eax
test eax, eax
jne 0x4582c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x459220
push dword [esi + 0x184]
mov edx, dword [esi + 0x178]
push dword [esi + 0x180]
mov ecx, dword [esi]
push dword [esi + 0x17c]
call fcn.004570f0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004821a0
add esp, 0xc
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0x1050], ax
lea eax, [ebp - 0x104e]
push eax
call fcn.004821a0
add esp, 0xc
lea eax, [ebp - 0x1210]
push 0x3c
push 0
push eax
call fcn.004821a0
lea eax, [ebp - 0x420]
lea ecx, [esi + 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 0x458381
mov ecx, dword [ecx]
mov edx, dword [esi + 0x18]
lea eax, [ebp - 0x1210]
push eax
push ecx
call fcn.004571b0
add esp, 8
test eax, eax
je 0x459222
cmp word [ebp - 0x420], 0
jne 0x4583aa
xor ecx, ecx
jmp 0x4583c2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4583b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x20]
call fcn.0040c0d0
push ecx
push dword [ebp - 0x11f8]
mov ecx, dword [esi]
lea edx, [ebp - 0x420]
call fcn.00457270
add esp, 8
mov dword [ebp - 0x11a8], eax
test eax, eax
je 0x459222
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.00457330
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x114c], edi
test edi, edi
je 0x459209
cmp byte [esi + 4], 0
jne 0x458471
cmp dword [ebp - 0x1204], 2
jne 0x458471
lea eax, [ebp - 0x1150]
push 4
push eax
mov edx, 0x1f
mov ecx, edi
mov dword [ebp - 0x1150], 0x3100
call fcn.00457400
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x1141], 0
xor ecx, ecx
mov eax, ecx
inc ecx
mov dword [ebp - 0x1198], ecx
cmp eax, 3
jae 0x4591e2
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x4584c5
cmp dword [esi + 0xdc], 8
lea edx, [esi + 0xc8]
jb 0x4584ad
mov edx, dword [edx]
push ecx
push eax
mov ecx, edi
call fcn.004574c0
add esp, 8
test eax, eax
jne 0x4584c5
call ebx
mov dword [esi + 0xf8], eax
cmp dword [esi + 0xb8], 0
jbe 0x458538
push str.Cookie:
lea ecx, [ebp - 0x1098]
call fcn.0040c1d0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp - 0x1098]
call fcn.004034a0
cmp dword [ebp - 0x1084], 8
push ecx
push dword [ebp - 0x1088]
lea edx, [ebp - 0x1098]
cmovae edx, dword [ebp - 0x1098]
mov ecx, edi
call fcn.004574c0
add esp, 8
test eax, eax
jne 0x458529
call ebx
mov dword [esi + 0xf8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1098]
call fcn.0040c340
cmp dword [esi + 0xf0], 0
jbe 0x458649
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.004821a0
lea eax, [esi + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x458590
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0047fc15
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, edi
call fcn.00457400
add esp, 8
test eax, eax
jne 0x4585d5
call ebx
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x458649
cmp dword [esi + 0x144], 8
lea ecx, [esi + 0x130]
jb 0x4585f0
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
mov edx, 0x1002
mov ecx, edi
call fcn.00457400
add esp, 8
test eax, eax
jne 0x45860f
call ebx
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x158]
test eax, eax
je 0x458649
cmp dword [esi + 0x15c], 8
lea ecx, [esi + 0x148]
jb 0x45862a
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
mov edx, 0x1003
mov ecx, edi
call fcn.00457400
add esp, 8
test eax, eax
jne 0x458649
call ebx
mov dword [esi + 0xf8], eax
sub esp, 0x14
mov ecx, edi
xor bl, bl
call fcn.00457580
add esp, 0x14
test eax, eax
jne 0x4588a7
xorps xmm0, xmm0
lea ecx, [ebp - 0x1184]
movq qword [ebp - 0x1184], xmm0
movq qword [ebp - 0x117c], xmm0
call fcn.00457640
test eax, eax
je 0x4588e6
mov eax, dword [ebp - 0x1180]
test eax, eax
je 0x458786
cmp dword [esi + 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 0x458704
mov edx, dword [esi + 8]
jmp 0x458707
lea edx, [esi + 8]
mov ecx, dword [esi]
lea eax, [ebp - 0x11a4]
push eax
lea eax, [ebp - 0x11d4]
push eax
call fcn.004576f0
add esp, 8
test eax, eax
je 0x45885b
lea eax, [ebp - 0x11a4]
push 0xc
push eax
mov edx, 0x26
mov ecx, edi
call fcn.00457400
add esp, 8
test eax, eax
je 0x45875d
sub esp, 0x14
mov ecx, edi
call fcn.00457580
add esp, 0x14
movzx ebx, bl
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0x11a0]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x458770
push eax
call edi
mov eax, dword [ebp - 0x119c]
test eax, eax
je 0x458868
push eax
call edi
jmp 0x458868
mov edi, dword [ebp - 0x117c]
test edi, edi
je 0x458888
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.004821a0
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
call fcn.0047fc15
mov edi, dword [ebp - 0x1178]
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x118c], eax
test edi, edi
je 0x45883b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.004821a0
add esp, 0xc
lea eax, [ebp - 0x628]
push edi
push 0x104
push eax
call fcn.0047fc15
lea eax, [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x1188], eax
mov ecx, dword [ebp - 0x114c]
lea eax, [ebp - 0x1190]
push 0xc
push eax
mov edx, 0x26
call fcn.00457400
add esp, 8
test eax, eax
jne 0x458868
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esi + 0xf8], eax
mov eax, dword [ebp - 0x1180]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x45887b
push eax
call edi
mov eax, dword [ebp - 0x117c]
test eax, eax
je 0x458888
push eax
call edi
mov eax, dword [ebp - 0x1178]
test eax, eax
je 0x458899
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 0x114c]
test bl, bl
je 0x4591b6
mov edx, dword [esi + 0xc0]
test edx, edx
je 0x4588f9
lea eax, [ebp - 0x1150]
push eax
push dword [esi + 0xc4]
mov ecx, edi
mov dword [ebp - 0x1150], 0
call fcn.004577b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
test eax, eax
jne 0x4588ff
call ebx
mov dword [esi + 0xf8], eax
jmp 0x4588ff
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [esi + 0xf8], eax
jmp 0x4591bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
call fcn.00457870
test eax, eax
je 0x4588ec
push ecx
lea eax, [ebp - 0x1148]
push eax
push 0
push ecx
mov edx, 0x16
mov ecx, edi
mov dword [ebp - 0x1148], 0
call fcn.00457920
add esp, 0x10
test eax, eax
jne 0x45893d
call ebx
cmp eax, 0x7a
jne 0x458cfd
mov eax, dword [ebp - 0x1148]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047923b
mov edi, eax
add esp, 4
mov dword [ebp - 0x11ac], edi
test edi, edi
je 0x458cf7
mov ecx, dword [ebp - 0x1148]
add ecx, ecx
push ecx
push 0
push edi
call fcn.004821a0
add esp, 8
lea eax, [ebp - 0x1148]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x114c]
mov edx, 0x16
call fcn.00457920
add esp, 0x10
test eax, eax
je 0x458cee
lea ebx, [esi + 0x38]
push edi
mov ecx, ebx
call fcn.00402a60
mov dword [ebp - 0x1168], 0
mov dword [ebp - 0x1164], 0
mov dword [ebp - 0x1160], 0
mov byte [ebp - 4], 2
push 0x4b33dc
lea ecx, [ebp - 0x1080]
call fcn.0040c1d0
mov byte [ebp - 4], 3
cmp byte [esi + 0x12c], 0
jne 0x458a72
lea ecx, [ebp - 0x10e0]
call fcn.00454b70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x458a15
push 0xffffffffffffffff
push 0
push eax
call fcn.0040bd60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10e0]
call fcn.0040c340
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x458a72
mov ecx, dword [ebp - 0x1164]
mov edi, dword [ebp - 0x1168]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x458a72
lea ecx, [esi + 0x68]
cmp ecx, edi
je 0x458a72
push 0xffffffffffffffff
push 0
push edi
call fcn.0040bd60
lea ecx, [ebp - 0x10f8]
call fcn.00454d90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x458a95
push 0xffffffffffffffff
push 0
push eax
call fcn.0040bd60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10f8]
call fcn.0040c340
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x458af8
mov ecx, dword [ebp - 0x1164]
mov edi, dword [ebp - 0x1168]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x458af8
cmp dword [edi + 0x14], 8
jb 0x458ae9
mov edi, dword [edi]
push edi
call fcn.0047e3d6
add esp, 4
mov dword [esi + 0x8c], eax
lea ecx, [ebp - 0x1110]
call fcn.00454fa0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x458b1b
push 0xffffffffffffffff
push 0
push eax
call fcn.0040bd60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1110]
call fcn.0040c340
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x458b7b
mov ecx, dword [ebp - 0x1164]
mov edi, dword [ebp - 0x1168]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x458b7b
lea ecx, [esi + 0x160]
cmp ecx, edi
je 0x458b7b
push 0xffffffffffffffff
push 0
push edi
call fcn.0040bd60
lea ecx, [ebp - 0x1140]
call fcn.00455180
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1080]
cmp ecx, eax
je 0x458b9e
push 0xffffffffffffffff
push 0
push eax
call fcn.0040bd60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1140]
call fcn.0040c340
push ecx
lea eax, [ebp - 0x1168]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x1080]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x458cca
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 0x458cca
xor edi, edi
test eax, eax
je 0x458c45
dec eax
mov dword [ebp - 0x1154], eax
lea eax, [esi + 0x90]
mov dword [ebp - 0x1150], eax
mov esi, eax
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.004034a0
cmp edi, dword [ebp - 0x1154]
je 0x458c33
push 0x4b7ebc
mov ecx, esi
call fcn.00402ab0
inc edi
add ebx, 0x18
cmp edi, dword [ebp - 0x1158]
jb 0x458c13
mov esi, dword [ebp - 0x11b0]
push 0x4b3724
lea ecx, [ebp - 0x10c8]
call fcn.0040c1d0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x10c8]
lea edi, [esi + 0x90]
push eax
mov edx, edi
lea ecx, [ebp - 0x1128]
call fcn.004542f0
add esp, 4
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call fcn.00402a20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1128]
call fcn.0040c340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c8]
call fcn.0040c340
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x458cca
cmp dword [edi + 0x14], 8
jb 0x458cb4
mov eax, dword [edi]
jmp 0x458cb6
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x3b
je 0x458cca
push 0x4b7ec4
mov ecx, edi
call fcn.00402ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1080]
call fcn.0040c340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1168]
call fcn.00402b70
mov edi, dword [ebp - 0x11ac]
push edi
call fcn.0047d6b1
add esp, 4
mov edi, dword [ebp - 0x114c]
push ecx
lea eax, [ebp - 0x1148]
push eax
push 0
push ecx
mov edx, 0x13
mov ecx, edi
mov dword [ebp - 0x1148], 0
call fcn.00457920
add esp, 0x10
test eax, eax
jne 0x458d31
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x7a
jne 0x458da5
mov eax, dword [ebp - 0x1148]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047923b
mov edi, eax
add esp, 4
test edi, edi
je 0x458d9f
mov ecx, dword [ebp - 0x1148]
add ecx, ecx
push ecx
push 0
push edi
call fcn.004821a0
add esp, 8
lea eax, [ebp - 0x1148]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x114c]
mov edx, 0x13
call fcn.00457920
add esp, 0x10
test eax, eax
je 0x458d96
push edi
lea ecx, [esi + 0xfc]
call fcn.00402a60
push edi
call fcn.0047d6b1
add esp, 4
mov edi, dword [ebp - 0x114c]
mov eax, dword [esi + 0x80]
mov ecx, 0x2800
xor ebx, ebx
mov dword [ebp - 0x1154], ecx
test eax, eax
je 0x458dcb
push eax
call fcn.0047d6b1
add esp, 4
mov dword [esi + 0x80], ebx
push 0x2800
call fcn.0047923b
add esp, 4
mov dword [esi + 0x80], eax
test eax, eax
je 0x4591d0
push 0x2800
push 0
push eax
call fcn.004821a0
add esp, 0xc
lea edx, [ebp - 0x1148]
mov ecx, edi
mov dword [ebp - 0x1148], 0
call fcn.004579f0
test eax, eax
je 0x458f6e
push ebx
mov ecx, esi
call fcn.00459300
mov eax, dword [ebp - 0x1148]
inc eax
push eax
call fcn.0047923b
mov edi, eax
add esp, 4
test edi, edi
je 0x458f59
mov ecx, dword [ebp - 0x1148]
inc ecx
push ecx
push 0
push edi
call fcn.004821a0
mov ecx, dword [ebp - 0x114c]
add esp, 0xc
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x1148]
mov edx, edi
mov dword [ebp - 0x1158], 0
call fcn.00457aa0
add esp, 8
test eax, eax
je 0x458f50
mov ecx, dword [ebp - 0x1158]
mov edx, dword [ebp - 0x1154]
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x458ef2
mov eax, dword [esi + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x1154], edx
call fcn.0047923b
add esp, 4
mov dword [esi + 0x80], eax
test eax, eax
je 0x458f7c
mov ecx, dword [ebp - 0x1154]
push ecx
push 0
push eax
call fcn.004821a0
add esp, 0xc
push ebx
push dword [ebp - 0x1150]
push dword [esi + 0x80]
call fcn.00481880
add esp, 0xc
push dword [ebp - 0x1150]
call fcn.0047d6b1
mov ecx, dword [ebp - 0x1158]
add esp, 4
mov eax, dword [esi + 0x80]
push ecx
add eax, ebx
push edi
push eax
call fcn.00481880
add ebx, dword [ebp - 0x1158]
add esp, 0xc
cmp byte [esi + 0x188], 0
je 0x458f50
push 2
push 0
push 0
push dword [esi + 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 edi
push dword [esi + 0x18c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x458f88
push edi
call fcn.0047d6b1
add esp, 4
mov edi, dword [ebp - 0x114c]
cmp dword [ebp - 0x1148], 0
ja 0x458df6
jmp 0x458f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x458f5f
mov eax, dword [ebp - 0x1150]
mov dword [esi + 0x80], eax
xor al, al
mov dword [ebp - 0x115c], eax
push ebx
mov ecx, esi
call fcn.00459300
mov dword [esi + 0x84], ebx
lea eax, [esi + 0x68]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov edi, 1
mov dword [ebp - 0x1154], ebx
mov dword [ebp - 0x1150], edi
jb 0x458fbc
mov eax, dword [eax]
push 5
push 0x4b7ec8
push eax
call fcn.0047fa6a
add esp, 0xc
test eax, eax
jne 0x458fe3
mov ebx, 0xfde9
xor edi, edi
mov dword [ebp - 0x1154], ebx
mov dword [ebp - 0x1150], edi
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
push eax
push dword [esi + 0x80]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call ebx
mov edi, eax
test edi, edi
jg 0x459037
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
push eax
push dword [esi + 0x80]
mov dword [ebp - 0x1154], 0
push 1
push 0
mov dword [ebp - 0x1150], 1
call ebx
mov edi, eax
test edi, edi
jle 0x45909f
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047923b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45909f
lea ecx, [edi + edi]
push ecx
push 0
push ebx
call fcn.004821a0
mov eax, dword [esi + 0x84]
add esp, 0xc
inc eax
push edi
push ebx
push eax
push dword [esi + 0x80]
push dword [ebp - 0x1150]
push dword [ebp - 0x1154]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x459096
push ebx
lea ecx, [esi + 0x50]
call fcn.00402a60
push ebx
call fcn.0047d6b1
add esp, 4
mov edx, 0x4b35ac
lea ecx, [ebp - 0x1068]
mov byte [ebp - 0x1141], 1
call fcn.0045b280
test al, al
je 0x4591f8
push str._html_
lea ecx, [ebp - 0x10b0]
call fcn.0040c1d0
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 edi, [esi + 0x50]
push edi
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x459192
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 0x459192
push str.__html_
lea ecx, [ebp - 0x10b0]
call fcn.00402a60
push ecx
lea eax, [ebp - 0x1174]
push eax
push edi
push ecx
lea ecx, [ebp - 0x10b0]
call fcn.00453e80
add esp, 0x10
test al, al
je 0x459181
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 0x459192
mov dword [esi + 0xf8], 0xd
mov byte [ebp - 0x1141], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1174]
call fcn.00402b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10b0]
call fcn.0040c340
mov edi, dword [ebp - 0x114c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x1141], 0
jne 0x4591f8
mov ecx, dword [ebp - 0x1198]
jmp 0x458480
xor bl, bl
xor eax, eax
cmp byte [ebp - 0x1141], al
movzx ebx, bl
cmove ebx, eax
jmp 0x4591fe
mov ebx, dword [ebp - 0x115c]
xor eax, eax
cmp byte [ebp - 0x1141], al
movzx ebx, bl
cmove ebx, eax
jmp 0x4591fe
mov ebx, dword [ebp - 0x115c]
mov ecx, dword [ebp - 0x114c]
call fcn.00457040
mov ecx, dword [ebp - 0x11a8]
call fcn.00457040
jmp 0x459222
mov dword [esi + 0xf8], 0x57
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1054], 8
jb 0x459240
push dword [ebp - 0x1068]
call fcn.0047cf40
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.0047cf45
mov esp, ebp
pop ebp
ret 8