Function at 0x100460c5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x10069fb0
call fcn.10068928
sub esp, 0xf0
push ebx
push esi
push edi
push 3
pop esi
mov edi, edx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x24], 0xa062b000
lea ecx, [ebp - 0x94]
push esi
mov dword [ebp - 0x10], edi
call fcn.1002a3c2
xor ebx, ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x14], 0x939f
push 4
call fcn.1002a3c2
mov dword [ebp - 0x28], 0xcea2ff3e
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], ebx
jmp 0x1004613c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x94]
mov dword [eax + ecx*4], 0x5405732a
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x10046129
mov dword [ebp - 0x18], ebx
jmp 0x10046157
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xb4], 0x33563700
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x10046146
mov dword [ebp - 0x18], ebx
jmp 0x1004616d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x70]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x10046161
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x94]
mov dword [eax + 4], ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
cmp dword [ecx + 8], ebx
je 0x100461b9
cmp dword [ebp - 0x28], ebx
je 0x100461b9
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x2669
cmp dword [ebp - 0x24], 0x98f
jge 0x1004625a
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100077a4
call fcn.1005056b
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
xor edi, edi
inc esi
push 0x1000774c
inc edi
call fcn.1005056b
xor eax, eax
add esp, 0x14
inc eax
cmp dword [ebp - 0x54], eax
jle 0x10046247
mov ebx, eax
lea eax, [ebp - 0xb8]
push eax
push 0x1000774c
call fcn.1005056b
mov eax, dword [ebp - 0xb8]
pop ecx
pop ecx
cmp eax, dword [ebp - 0x4c]
je 0x10046230
inc esi
jmp 0x10046233
xor esi, esi
inc esi
cmp edi, esi
mov dword [ebp - 0x4c], eax
mov eax, esi
cmovg eax, edi
inc ebx
mov edi, eax
cmp ebx, dword [ebp - 0x54]
jl 0x1004620f
xor ebx, ebx
push edi
push 0x10007750
call fcn.10050853
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
push 3
pop esi
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x10046273
push ebx
push 0x942
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x70]
call fcn.10050a29
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x94]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.10050a29
movdqa xmm0, xmmword [0x10007e90]
lea eax, [ebp - 0xe4]
pop ecx
pop ecx
push dword [ebp - 0xa8]
mov dword [ebp - 0x94], ebx
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x90], ebx
push eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x28], 0xc5a654fd
mov dword [ebp - 0x2c], 0xc3d4e703
push ebx
movdqu xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.1002f372
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0xed99ea7e
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
jl 0x100463b4
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x1c], 0xc4365de
mov dword [ebp - 0x14], 0xfc0233fd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
cmp dword [eax + ecx*4], ebx
jne 0x10046348
mov dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + edx*4]
je 0x10046344
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], ebx
jne 0x10046348
mov edx, ebx
jmp 0x1004634b
xor edx, edx
inc edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
cmp dword [eax + ecx*4], 0xb3a3fc4b
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edx
setl cl
cmp ecx, dword [esi + 8]
jl 0x1004636a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
imul edx, dword [esi + 8]
mov eax, dword [ebp - 0x38]
sub edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x24]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setg cl
xor edx, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
setg dl
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x100463ab
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
dec dword [ebp - 0x10]
jns 0x10046304
cmp dword [ebp - 0x38], 0
je 0x100463cc
push dword [ebp - 0x38]
call fcn.10050a29
pop ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
xor esi, esi
mov dword [ebp - 0x2c], 0xd714f98c
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
jmp 0x100463ef
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xbc], 0x8eac8b13
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x100463de
mov dword [ebp - 0x18], ebx
jmp 0x1004641d
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x1004641a
push ebx
push 0x8aa
push ebx
push ebx
push 0x16d5
push 0x1035
call dword [sym.imp.USER32.dll_ToAsciiEx]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jle 0x100463f9
mov dword [ebp - 0x18], 0xffffffe5
jmp 0x1004653b
push 3
lea ecx, [ebp - 0x88]
call fcn.1002a3c2
mov dword [ebp - 0x10], ebx
jmp 0x10046450
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x88]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 3
jl 0x10046440
mov dword [ebp - 0x10], ebx
jmp 0x1004646c
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xfc], 0x42b4cf22
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x1004645b
mov edx, dword [ebp - 0x88]
mov dword [edx + 8], ebx
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jmp 0x100464be
mov dword [ebp - 0x14], 0xfd947597
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x100464b8
mov dword [ebp - 0x24], 0xd203
mov ecx, 0xf3e76e5b
mov eax, dword [ebp - 0x18]
sub ecx, eax
add ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
dec dword [ebp - 0x14]
jns 0x10046499
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jle 0x1004648a
mov dword [ebp - 0x10], ebx
jmp 0x1004650b
mov dword [ebp - 0x14], 0x1f230b56
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], ebx
jmp 0x10046503
mov dword [ebp - 0x24], 0xffffffff
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov eax, dword [ebp + eax*4 - 0xbc]
cmp eax, 0x1f51b437
mov eax, dword [ebp - 0x14]
setge cl
add eax, ecx
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], ebx
jle 0x100464da
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jle 0x100464c8
inc dword [edx + 8]
cmp dword [edx + 8], 0
jle 0x1004647b
push dword [ebp - 0x88]
call fcn.10050a29
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
inc dword [ebp - 0x18]
pop ecx
cmp dword [ebp - 0x18], 0xffffffec
jle 0x1004642e
push 2
lea ecx, [ebp - 0x7c]
call fcn.1002a3c2
mov dword [ebp - 4], esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x1c], 0xa622a149
mov dword [ebp - 0x10], 0xb44cf592
push 3
call fcn.1002a3c2
mov dword [ebp - 0x24], 0x60016488
mov dword [ebp - 0x14], 0x35984225
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
jmp 0x1004659d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa0]
mov dword [eax + ecx*4], 0xfffffffe
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004658a
cmp dword [ebp - 0x1c], ebx
jne 0x100465c7
mov eax, dword [ebp - 0x1c]
mov edx, ebx
sub eax, 0x6c9c
sub eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
inc eax
sub eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 0x1c]
jg 0x100465c9
mov edx, esi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setne cl
sub eax, ecx
cmp eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xa0]
jge 0x100465e8
cmp dword [edx + 4], ebx
jne 0x100465ea
mov esi, ebx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, esi
setg cl
sub ecx, dword [edx + 4]
neg ecx
sbb ecx, ecx
inc ecx
cmp ecx, 0xfffb
sbb eax, eax
add eax, 2
neg eax
sbb eax, eax
xor esi, esi
inc eax
inc esi
mov dword [edx + 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x1c]
push dword [ebp - 0xa0]
mov dword [ebp - 0x24], eax
call fcn.10050a29
pop ecx
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x2c], 0x26874be7
mov dword [ebp - 0x24], 0xaf43b7c7
push 2
call fcn.1002a3c2
mov dword [ebp - 0x18], 0x6f5a9c4c
mov dword [ebp - 0x10], 0xfffffff8
mov dword [ebp - 0x14], 0x4039ee49
mov dword [ebp - 0x1c], 0xfa4c8210
mov dword [ebp - 0x2c], 0x51dd2e91
mov dword [ebp - 0x14], 0xa72d50fa
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x14], ebx
jmp 0x1004669e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
mov dword [eax + ecx*4], 6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1004668e
dec dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
mov eax, dword [ebp - 0x48]
setg dl
xor ecx, ecx
cmp edx, dword [eax]
setl cl
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
jne 0x100466df
cmp dword [ebp - 0x2c], ebx
jne 0x100466df
mov eax, dword [ebp - 0x48]
jmp 0x100466e8
mov eax, dword [ebp - 0x48]
mov edx, esi
cmp dword [eax], ebx
jne 0x100466ea
mov edx, ebx
xor ecx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
cmp edx, eax
setle cl
sub ecx, dword [ebp - 0x18]
push dword [ebp - 0x48]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x14], ecx
call fcn.10050a29
pop ecx
mov dword [ebp - 0x48], ebx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], 0xffffffff
call fcn.10045e20
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x2c], 0xde6bc044
mov dword [ebp - 0x10], 0x421e
push esi
call fcn.1002a3c2
mov dword [ebp - 0x14], ebx
jmp 0x10046763
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc8]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10046754
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp ecx, 0xe8f2
setle al
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 0x1c]
sets dl
inc edx
neg edx
sbb edx, edx
inc edx
sub ecx, edx
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc8]
push eax
mov dword [eax], ecx
call fcn.10050a29
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x28]
pop ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
test eax, eax
jne 0x100467d7
mov edx, ebx
cmp dword [ebp - 0x28], ebx
je 0x100467d9
mov edx, esi
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x28]
push 3
setg cl
xor edx, edx
cmp ecx, eax
setg dl
sub edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
setle cl
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
cmp dword [ebp - 0x2c], eax
setge cl
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x14], 0xfffffffe
call fcn.1002a3c2
push 3
mov dword [ebp - 0x2c], 0x67ee39f3
mov dword [ebp - 0x10], ebx
pop edx
jmp 0x10046845
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xe0], esi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jl 0x10046838
mov dword [ebp - 0x10], ebx
jmp 0x1004685b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jl 0x1004684f
mov dword [ebp - 0x14], ebx
jmp 0x100468e3
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 2
jg 0x100468be
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0xe0], 6
jl 0x100468ad
cmp dword [ebp - 0x18], ebx
je 0x100468a9
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0xe0], ebx
je 0x100468a9
mov eax, dword [ebp - 0x18]
mov ecx, 0x45c81010
mov eax, dword [ebp + eax*4 - 0xe0]
sub ecx, eax
jne 0x100468ad
mov eax, ebx
jmp 0x100468af
mov eax, esi
mov dword [edx + 8], eax
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jle 0x10046878
mov dword [ebp - 0x18], 0xfffffffd
jmp 0x100468da
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x100468d7
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffe4
jle 0x100468c7
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x15
jl 0x10046865
cmp dword [ebp - 0x64], 0
je 0x10046905
push dword [ebp - 0x64]
call fcn.10050a29
pop ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
dec dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x7c], 0
je 0x10046924
push dword [ebp - 0x7c]
call fcn.10050a29
pop ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x10], 0xc7dcd66a
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x1c], esi
push 3
call fcn.1002a3c2
mov dword [ebp - 0x14], ebx
jmp 0x10046956
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xd4]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x10046947
mov edx, esi
cmp dword [ebp - 0x28], ebx
jne 0x10046965
mov edx, ebx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x28]
sete cl
sub eax, ecx
je 0x10046979
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, 0xffff
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x10]
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], 0xfffffffe
jmp 0x10046ab7
mov dword [ebp - 0x14], 0xfffffffa
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x28], ebx
jne 0x10046ac1
mov dword [ebp - 0x10], ebx
jmp 0x10046aaa
mov dword [ebp - 0x2c], 0x1b3b
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
cmp eax, esi
setge cl
xor eax, eax
test ecx, ecx
setle al
sub eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
xor edx, edx
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xd4]
cmp dword [eax + ecx*4], 0x18f8f6a0
setge dl
xor eax, eax
cmp edx, 0xd447
setge al
sub eax, 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], ebx
jl 0x10046aa7
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x2c], 0x1512
cmp dword [ebp - 0x2c], 0x125c
jge 0x10046a8d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x10007890
call fcn.1005056b
mov ecx, dword [ebp - 0x50]
add esp, 0x10
test ecx, ecx
jns 0x10046a57
neg ecx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x3c]
test eax, eax
jns 0x10046a63
neg eax
mov dword [ebp - 0x3c], eax
add eax, ecx
cmp dword [ebp - 0x58], eax
jl 0x10046a82
sub eax, dword [ebp - 0x58]
and eax, 0x80000001
jns 0x10046a79
dec eax
or eax, 0xfffffffe
inc eax
jne 0x10046a82
push 0x10007d5c
jmp 0x10046a87
push 0x10007d58
call fcn.10050b42
pop ecx
cmp byte [ebp - 0x1d], 0
je 0x10046a9e
push 0x1e68
call dword [sym.imp.GDI32.dll_EndDoc]
dec dword [ebp - 0x14]
jns 0x10046a1f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jle 0x100469c0
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x14
jle 0x100469a5
cmp dword [ebp - 0xd4], 0
je 0x10046ad6
push dword [ebp - 0xd4]
call fcn.10050a29
pop ecx
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [ebp - 0xa4]
mov edi, edx
mov esi, eax
call fcn.10045dae
mov ecx, dword [ebp - 0xc]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret