Function at 0x4609e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x496040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov al, byte [esp + 0x58]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00401bc0
mov cl, byte [esp + 0x68]
push esi
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], esi
call fcn.00401bc0
mov eax, dword [ebp + 0x1c]
mov byte [esp + 0x60], 1
cmp eax, esi
je 0x460aad
cmp dword [ebp + 0x13c], 1
jne 0x460a49
cmp dword [ebp + 0x354], esi
je 0x4612e5
mov edx, dword [esp + 0x74]
mov edi, dword [ebp + 0x218]
mov ecx, dword [ebp + 0x37c]
add edi, edx
mov eax, edi
mov dword [ebp + 0x218], edi
cmp eax, ecx
jge 0x460a7b
cmp dword [ebp + 0x354], esi
jne 0x460a7b
cmp dword [ebp + 0x604], esi
je 0x4615e2
mov eax, dword [ebp + 0x16c]
mov ecx, dword [ebp + 0x170]
push esi
push esi
push eax
lea eax, [ebp + 0x360]
push ecx
push eax
mov dword [ebp + 0x218], esi
call dword [0x4974d4]
mov eax, dword [esp + 0x70]
cmp byte [eax], 0x53
je 0x460ad7
mov dword [ebp + 0x108], esi
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 0
call fcn.00401bc0
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00401bc0
xor eax, eax
jmp 0x46163d
lea ebx, [eax + 1]
mov eax, dword [eax + 0x404]
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], eax
mov dword [ebp + 0x5b4], esi
mov dword [ebp + 0x5b8], esi
mov ecx, dword [ebp + 0x108]
mov edi, 0x536018
push 1
mov dl, byte [ebx + ecx]
lea eax, [ebx + ecx]
mov byte [esp + 0x14], dl
or ecx, 0xffffffff
mov al, byte [eax + 1]
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x74], ecx
push ecx
lea ecx, [esp + 0x50]
call fcn.00402210
test al, al
je 0x460b5b
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x4c]
mov ecx, eax
mov esi, 0x536018
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.00401ba0
mov edi, 0x536018
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x74], ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.00402210
test al, al
je 0x460ba5
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x3c]
mov ecx, eax
mov esi, 0x536018
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.00401ba0
cmp byte [esp + 0x10], 0xff
jne 0x460fd6
cmp byte [esp + 0x11], 0xff
jne 0x460fd6
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0040c5e0
mov edx, dword [ebp + 0x108]
add edx, 2
mov eax, edx
mov dword [ebp + 0x108], edx
mov al, byte [eax + ebx]
mov byte [esp + 0x1c], al
mov edi, eax
mov ecx, dword [esp + 0x1c]
and edi, 0xff
push ecx
push 1
mov ecx, esi
call fcn.0044a3a0
mov ecx, dword [ebp + 0x108]
inc ecx
test edi, edi
mov dword [ebp + 0x108], ecx
jle 0x460c6a
mov esi, edi
mov edx, dword [ebp + 0x108]
mov al, byte [ebx + edx]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
push ecx
push 1
lea ecx, [esp + 0x50]
call fcn.0044a3a0
mov edx, dword [ebp + 0x108]
mov al, byte [ebx + edx + 1]
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
push 1
lea ecx, [esp + 0x50]
call fcn.0044a3a0
mov ecx, dword [ebp + 0x108]
add ecx, 2
dec esi
mov dword [ebp + 0x108], ecx
jne 0x460c1d
mov edx, dword [0x497530]
lea eax, [esp + 0x48]
push edx
push 0
push eax
lea ecx, [ebp + 0x11c]
call fcn.0044b6a0
mov ecx, dword [ebp + 0x108]
mov al, byte [ebx + ecx]
lea ecx, [ebp + 0x11c]
mov byte [esp + 0x28], al
mov esi, eax
mov edx, dword [esp + 0x28]
and esi, 0xff
push edx
push 1
call fcn.0044a3a0
mov ecx, dword [ebp + 0x108]
inc ecx
test esi, esi
mov dword [ebp + 0x108], ecx
jle 0x460d5d
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x108]
mov cl, byte [ebx + eax]
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x2c]
push edx
push 1
call fcn.0044a3a0
mov eax, dword [ebp + 0x108]
mov edx, dword [0x497530]
mov cl, byte [ebx + eax + 1]
mov byte [esp + 0x70], cl
mov ecx, dword [esp + 0x40]
sub edx, ecx
cmp edx, 1
ja 0x460d04
call fcn.00474756
mov eax, dword [esp + 0x40]
push 0
inc eax
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x38], eax
call fcn.00402210
test al, al
je 0x460d3f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea eax, [edx + ecx]
movsx ecx, byte [esp + 0x70]
mov byte [eax], cl
mov eax, dword [esp + 0x30]
mov ch, cl
push eax
lea ecx, [esp + 0x3c]
call fcn.00401ba0
mov ecx, dword [ebp + 0x108]
mov eax, dword [esp + 0x18]
add ecx, 2
dec eax
mov dword [ebp + 0x108], ecx
mov dword [esp + 0x18], eax
jne 0x460cc3
mov ecx, dword [0x497530]
lea edx, [esp + 0x38]
push ecx
push 0
push edx
lea ecx, [ebp + 0x11c]
call fcn.0044b6a0
mov ecx, dword [ebp + 0x2d0]
mov edx, dword [ebp + 0x48]
mov eax, ecx
add eax, edx
imul eax, esi
cdq
idiv edi
lea edx, [esi + 1]
imul edx, ecx
add edx, dword [ebp + 0x114]
mov edi, eax
mov eax, dword [ebp + 0x358]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x174]
cmp edx, eax
mov dword [ebp + 0x358], 1
jl 0x460e2a
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
jge 0x460dd8
mov ecx, ebp
call fcn.00462130
cmp dword [ebp + 0x354], 1
je 0x461296
jmp 0x460e2a
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push ecx
push edx
mov ecx, ebp
call fcn.004604e0
mov eax, dword [ebp + 0x170]
mov dword [ebp + 0x114], eax
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x460e2a
mov ecx, dword [ebp + 0x37c]
mov eax, 1
mov dword [ebp + 0x13c], eax
mov dword [ebp + 0x140], eax
mov eax, dword [ebp + 0x380]
cmp ecx, eax
je 0x460e2a
mov dword [ebp + 0x37c], eax
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x48]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call fcn.0040c4c0
push esi
push edi
mov ecx, ebp
call fcn.00460040
add esi, esi
xor edi, edi
test esi, esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x30], esi
jle 0x460fbd
jmp 0x460e68
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp edx, edi
jb 0x460ead
test eax, eax
je 0x460ead
mov cl, byte [eax - 1]
test cl, cl
je 0x460e98
cmp cl, 0xff
je 0x460e98
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.00402210
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x460ea8
mov byte [eax - 1], 0xff
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edi]
jmp 0x460eb2
mov ecx, 0x497534
mov cl, byte [ecx]
lea esi, [edi + 1]
cmp edx, esi
mov byte [esp + 0x10], cl
jb 0x460eef
test eax, eax
je 0x460eef
mov cl, byte [eax - 1]
test cl, cl
je 0x460edf
cmp cl, 0xff
je 0x460edf
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.00402210
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x460eeb
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x3c]
add eax, esi
jmp 0x460ef4
mov eax, 0x497534
mov dl, byte [eax]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x10]
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x68]
push 0
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0045f330
mov eax, dword [ebp + 0x2d0]
mov ecx, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x114]
add eax, ecx
add ebx, eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 0x114], ebx
mov edx, dword [ebp + 0x5e4]
mov esi, ecx
mov ecx, dword [0x497530]
sub ecx, edx
cmp ecx, esi
ja 0x460f52
call fcn.00474756
test esi, esi
jbe 0x460fa2
mov eax, dword [ebp + 0x5e4]
lea ecx, [ebp + 0x5dc]
mov ebx, esi
push 0
add ebx, eax
push ebx
call fcn.00402210
test al, al
je 0x460fa2
mov edi, dword [ebp + 0x5e0]
mov edx, dword [ebp + 0x5e4]
lea eax, [ebp + 0x5dc]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [esp + 0x10]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.00401ba0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x70], eax
jl 0x460e64
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x14c], 1
mov dword [ebp + 0x358], eax
jmp 0x461296
mov eax, dword [ebp + 0x108]
test eax, eax
jne 0x461001
mov eax, dword [ebp + 0x144]
test eax, eax
je 0x461001
mov esi, dword [esp + 0x68]
push ebx
push esi
mov ecx, ebp
call fcn.00460400
test eax, eax
jne 0x4612c5
jmp 0x461005
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x10]
mov dword [ebp + 0x144], 1
push ecx
mov ecx, ebp
call fcn.004621b0
push esi
push ebx
mov ecx, ebp
call fcn.004607b0
test eax, eax
jne 0x4612d3
push eax
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push eax
push esi
call fcn.0045f330
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x124]
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ebp + 0x11c]
dec ecx
mov esi, ecx
mov ecx, dword [0x497530]
sub ecx, edx
cmp ecx, esi
ja 0x46106c
call fcn.00474756
test esi, esi
jbe 0x4610b1
mov ecx, dword [ebx + 8]
mov eax, esi
add eax, ecx
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.00402210
test al, al
je 0x4610b1
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x70]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401ba0
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x5e4]
repne scasb al, byte es:[edi]
mov eax, dword [0x497530]
lea ebx, [ebp + 0x5dc]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4610dd
call fcn.00474756
test esi, esi
jbe 0x461122
mov ecx, dword [ebx + 8]
mov eax, esi
add eax, ecx
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.00402210
test al, al
je 0x461122
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x70]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401ba0
mov eax, dword [ebp + 0x108]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x14c], 1
lea ecx, [eax + 3]
cmp edx, ecx
jle 0x46130d
mov edx, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x114]
add eax, 2
mov esi, dword [ebp + 0x174]
mov dword [ebp + 0x108], eax
mov eax, dword [ebp + 0x2d0]
add edx, eax
lea edx, [ecx + edx*2]
cmp edx, esi
jl 0x461285
mov eax, dword [ebp + 0x5d4]
lea ecx, [ebp + 0x5cc]
push ebx
push 1
push eax
call fcn.00401d50
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x5e4]
test eax, eax
mov dword [esp + 0x70], eax
je 0x4611c1
mov al, byte [eax - 1]
test al, al
je 0x4611c1
cmp al, 0xff
je 0x4611c1
push 1
mov ecx, ebx
call fcn.00401bc0
mov edi, dword [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0040e930
mov eax, dword [ebx + 8]
cmp eax, esi
jae 0x4611ca
mov esi, eax
test esi, esi
jbe 0x4611fe
mov ecx, dword [ebx + 4]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0046a230
mov edi, dword [ebx + 8]
add esp, 0xc
sub edi, esi
mov ecx, ebx
push 0
push edi
call fcn.00402210
test al, al
je 0x4611fe
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edi
mov byte [edi + eax], 0
mov ecx, dword [ebp + 0x2d4]
mov esi, dword [ebp + 0x118]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x178]
add ecx, esi
add ecx, edx
cmp ecx, eax
jl 0x46125a
mov eax, dword [ebp + 0x10c]
mov edx, dword [ebp + 0x170]
test eax, eax
mov dword [ebp + 0x114], edx
mov esi, 1
je 0x46125f
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], esi
mov dword [ebp + 0x140], esi
je 0x46125f
mov dword [ebp + 0x37c], eax
jmp 0x46125f
mov esi, 1
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
jge 0x461535
mov ecx, ebp
call fcn.00462130
cmp dword [ebp + 0x354], esi
jne 0x461586
jmp 0x461292
mov edx, dword [ebp + 0x48]
add edx, ecx
add edx, eax
mov dword [ebp + 0x114], edx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x358]
test eax, eax
jne 0x460af5
mov eax, dword [ebp + 0x354]
test eax, eax
jne 0x460af5
mov eax, dword [ebp + 0x37c]
test eax, eax
jne 0x4615e2
jmp 0x460af5
mov eax, dword [esp + 0x74]
mov edx, dword [ebp + 0x218]
sub edx, eax
jmp 0x4612df
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x218]
sub edx, ecx
mov dword [ebp + 0x218], edx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 0
call fcn.00401bc0
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00401bc0
jmp 0x461638
mov edx, dword [ebp + 0x2d4]
mov eax, dword [ebp + 0x2d0]
push edx
push eax
mov ecx, ebp
call fcn.004604e0
mov ecx, ebp
call fcn.00462130
mov ecx, dword [0x497530]
mov edx, dword [ebp + 0x124]
lea edi, [ebp + 0x11c]
sub ecx, edx
cmp ecx, 1
ja 0x461347
call fcn.00474756
mov esi, dword [edi + 8]
push 0
inc esi
mov ecx, edi
push esi
call fcn.00402210
test al, al
je 0x46136c
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
add edx, ecx
push esi
mov ecx, edi
mov byte [edx], 0xfe
call fcn.00401ba0
mov eax, dword [0x497530]
mov edx, dword [edi + 8]
sub eax, edx
cmp eax, 1
ja 0x461380
call fcn.00474756
mov esi, dword [edi + 8]
push 0
inc esi
mov ecx, edi
push esi
call fcn.00402210
test al, al
je 0x4613a5
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
add ecx, edx
push esi
mov byte [ecx], 0xfe
mov ecx, edi
call fcn.00401ba0
mov edx, dword [ebp + 0x5d4]
lea ecx, [ebp + 0x5cc]
lea ebx, [ebp + 0x5dc]
push ebx
push 1
push edx
call fcn.00401d50
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x5e4]
test eax, eax
mov dword [esp + 0x68], eax
je 0x461400
mov al, byte [eax - 1]
test al, al
je 0x461400
cmp al, 0xff
je 0x461400
push 1
mov ecx, ebx
call fcn.00401bc0
mov edi, dword [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x68]
not ecx
dec ecx
push ecx
push eax
mov ecx, ebx
call fcn.0040e930
mov eax, dword [ebx + 8]
cmp eax, esi
jae 0x461409
mov esi, eax
test esi, esi
jbe 0x46143d
mov ecx, dword [ebx + 4]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0046a230
mov edi, dword [ebx + 8]
add esp, 0xc
sub edi, esi
mov ecx, ebx
push 0
push edi
call fcn.00402210
test al, al
je 0x46143d
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edi
mov byte [edi + eax], 0
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x34]
cmp ecx, eax
jle 0x461479
xor esi, esi
mov edx, 1
cmp ecx, esi
je 0x461480
mov eax, dword [ebp + 0x380]
mov edi, dword [ebp + 0x37c]
cmp edi, eax
mov dword [ebp + 0x13c], edx
mov dword [ebp + 0x140], edx
je 0x461480
mov dword [ebp + 0x37c], eax
jmp 0x461480
xor esi, esi
mov edx, 1
mov eax, dword [ebp + 0x2d4]
mov edi, dword [ebp + 0x118]
mov ebx, dword [ebp + 0x4c]
add eax, edi
mov edi, dword [ebp + 0x178]
add eax, ebx
cmp eax, edi
jl 0x4614cf
mov eax, dword [ebp + 0x170]
cmp ecx, esi
mov dword [ebp + 0x114], eax
je 0x4614cf
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], edx
mov dword [ebp + 0x140], edx
je 0x4614cf
mov dword [ebp + 0x37c], eax
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x108], esi
cmp ecx, esi
je 0x4614f9
mov al, byte [ecx - 1]
test al, al
je 0x4614ef
cmp al, 0xff
je 0x4614ef
dec al
mov byte [ecx - 1], al
jmp 0x4614f9
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x46152e
mov al, byte [ecx - 1]
test al, al
je 0x461524
cmp al, 0xff
je 0x461524
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x46163d
dec ecx
push ecx
call fcn.00485136
add esp, 4
xor eax, eax
jmp 0x46163d
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push ecx
push edx
mov ecx, ebp
call fcn.004604e0
mov eax, dword [ebp + 0x170]
xor edi, edi
mov dword [ebp + 0x114], eax
mov eax, dword [ebp + 0x10c]
cmp eax, edi
je 0x461588
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov dword [ebp + 0x13c], esi
mov dword [ebp + 0x140], esi
je 0x461588
mov dword [ebp + 0x37c], eax
jmp 0x461588
xor edi, edi
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
je 0x4615ac
mov al, byte [ecx - 1]
test al, al
je 0x4615a2
cmp al, 0xff
je 0x4615a2
dec al
mov byte [ecx - 1], al
jmp 0x4615ac
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], edi
cmp ecx, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x4615de
mov al, byte [ecx - 1]
test al, al
je 0x4615d4
cmp al, 0xff
je 0x4615d4
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x46163d
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov eax, esi
jmp 0x46163d
mov ecx, dword [esp + 0x3c]
xor esi, esi
cmp ecx, esi
je 0x461608
mov al, byte [ecx - 1]
test al, al
je 0x4615fe
cmp al, 0xff
je 0x4615fe
dec al
mov byte [ecx - 1], al
jmp 0x461608
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x461638
mov al, byte [ecx - 1]
test al, al
je 0x46162e
cmp al, 0xff
je 0x46162e
dec al
mov byte [ecx - 1], al
jmp 0x461638
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x14