Function at 0x4998ad
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], 1
mov eax, dword [esi + 0xbeb8]
mov ecx, dword [esi + 0xbebc]
cmp eax, ecx
jne 0x4998e1
call dword [0x10007018]
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [esi + 0xbebc], edx
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [edi + edi*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + edx*8 + 0xb900]
test eax, eax
lea ebp, [esi + edx*8 + 0xb8c8]
lea ebx, [ebp + 0x10]
jne 0x499964
push 0x2000
call dword [0x10007058]
add esp, 4
mov dword [ebp + 0x38], eax
test eax, eax
jne 0x499964
push 0xe
lea eax, [esi + 0xc325]
push 0x10008044
push eax
mov dword [esi + 0xc11c], 0xe
call dword [0x100070b4]
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
mov edi, 2
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
cmp dword [ebp], 0
jne 0x499987
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
mov edi, 6
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ecx, dword [esi + 0x44]
push 0xffffffffffffffff
push ecx
call dword [0x10007048]
mov eax, dword [esi + 0x44]
mov edx, dword [ebp + 0x70]
push eax
mov dword [esi + 0xc11c], edx
call dword [0x10007044]
mov eax, dword [esi + 0xc11c]
test eax, eax
je 0x499a8d
mov ecx, dword [ebp + 0xc]
push eax
inc ecx
inc edi
push ecx
push edi
lea edx, [esi + 0xc325]
push 0x10008594
push edx
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0xc11c]
lea eax, [eax + eax*2]
shl eax, 5
mov dword [eax + esi + 0x1328], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, esi
lea edx, [eax + eax*2]
shl edx, 5
mov ebx, dword [edx + esi + 0x1320]
lea eax, [edx + esi + 0x1320]
inc ebx
mov dword [eax], ebx
mov eax, dword [esi + 0xc11c]
push eax
push ebp
call fcn.0049a688
dec eax
je 0x499a6b
mov ebp, dword [ebp + 0xc]
dec eax
lea eax, [ebp + ebp*2]
je 0x499a50
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov edx, dword [ecx + esi + 0x1320]
lea eax, [ecx + esi]
cmp edx, dword [esi + 0x40]
jb 0x49a47c
jmp 0x49a472
shl eax, 4
add eax, ebp
lea eax, [eax + eax*2]
shl eax, 5
mov dword [eax + esi + 0x1318], 1
jmp 0x49a47c
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov dword [ecx + esi + 0x131c], 1
jmp 0x49a47c
mov eax, dword [ebp + 4]
test eax, eax
jne 0x49a265
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*2]
shl edx, 5
lea edi, [edx + esi + 0x134c]
lea eax, [edi + 0x14]
push eax
mov dword [eax], 0x10
mov ecx, dword [ebp]
lea eax, [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0049bdc8
mov dword [edi], eax
mov edi, dword [0x100070cc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x20000013
push edx
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x499b3f
call dword [0x10007028]
mov dword [esi + 0xc11c], eax
mov edx, dword [ebp + 0xc]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
shl ecx, 5
mov dword [ecx + esi + 0x1328], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0xc11c]
mov ecx, dword [esp + 0x3c]
inc eax
push edx
inc ecx
push eax
push ecx
push 0x10008568
jmp 0x49a4e3
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
shl eax, 5
mov dword [eax + esi + 0x1334], ecx
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x499d70
cmp eax, 0xce
je 0x499d70
mov dword [esi + 0xc11c], 0xfffffff9
mov edx, dword [ebp + 0xc]
push 0xfffffffffffffff9
push eax
mov eax, dword [esp + 0x44]
inc edx
inc eax
push edx
push eax
lea ecx, [esi + 0xc325]
push 0x1000853c
push ecx
call dword [0x100070b4]
mov edx, dword [esp + 0x34]
add esp, 0x18
mov ecx, esi
mov edi, 3
push edx
call fcn.0049a628
dec eax
je 0x499d07
dec eax
je 0x499ca9
dec eax
jne 0x49a481
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
lea ecx, [eax + esi]
mov eax, dword [eax + esi + 0x1340]
test eax, eax
jbe 0x499c09
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x131c], 1
push eax
mov ecx, esi
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov eax, dword [esi + 8]
test eax, eax
je 0x499c5e
mov eax, dword [esi + 0xbed0]
test eax, eax
je 0x499c5e
mov eax, 0x51eb851f
mul dword [esp + 0x1c]
shr edx, 5
cmp edx, 4
jne 0x499c5e
add ecx, 0x208
push ecx
push 9
mov ecx, esi
call fcn.0049b988
mov dword [esi + 0xc10c], eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
mov edi, 4
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
add ecx, 0x208
push ecx
push 8
mov ecx, esi
call fcn.0049b988
mov dword [esi + 0xc10c], eax
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x3c]
shl ecx, 5
push eax
mov dword [ecx + esi + 0x1318], 1
mov ecx, esi
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
push ebp
mov ecx, esi
call fcn.0049a708
test eax, eax
je 0x499cd2
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
mov edi, 7
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ebp, dword [ebp + 0xc]
mov ecx, esi
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x3c]
shl edx, 5
push eax
mov dword [edx + esi + 0x1318], 1
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + esi + 0x1320]
lea eax, [eax + esi + 0x1320]
inc edx
mov dword [eax], edx
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov edx, dword [ecx + esi + 0x1320]
lea eax, [ecx + esi]
cmp edx, dword [esi + 0x40]
jb 0x49a481
mov dword [eax + 0x1318], 1
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jne 0x49a164
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], eax
cmp ecx, eax
mov dword [esp + 0x18], eax
je 0x499e5e
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebp]
push ecx
push edx
push 0x2a
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x2000
call edi
test eax, eax
je 0x499dec
mov ecx, dword [ebp + 0x38]
push ecx
call dword [0x10007084]
mov eax, dword [ebp + 0x38]
push 0x10008534
push eax
call dword [0x10007080]
add esp, 0xc
test eax, eax
jne 0x499e5e
mov dword [esp + 0x18], eax
jmp 0x499e5e
mov ecx, dword [ebp + 0x38]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [ebp]
push eax
push ecx
push 0x35
push edx
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x499e36
mov eax, dword [ebp + 0x38]
push eax
call dword [0x10007084]
mov eax, dword [ebp + 0x38]
push 5
push 0x10008534
push eax
call dword [0x1000707c]
add esp, 0x10
jmp 0x499de2
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
shl ecx, 5
lea edx, [ecx + esi + 0x208]
mov ecx, esi
push edx
push 5
call fcn.0049b988
mov dword [esi + 0xc10c], eax
mov edx, dword [ebp + 0x38]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebp]
push ecx
push edx
push 5
push eax
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x499f1a
mov ecx, dword [ebp + 0x38]
push ecx
call dword [0x10007078]
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xbe98]
mov edi, dword [esi + 0xbe9c]
mov ecx, edx
or ecx, edi
je 0x499fe1
mov eax, dword [ebp + 0x3c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + ecx*4 + 0xbd88]
add eax, dword [esp + 0x28]
mov ecx, dword [esi + ecx*4 + 0xbd8c]
adc ecx, dword [esp + 0x2c]
cmp edx, eax
jne 0x499ee5
cmp edi, ecx
je 0x499fe1
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*2]
shl edx, 5
lea eax, [edx + esi + 0x208]
push eax
push 7
mov ecx, esi
call fcn.0049b988
mov dword [esi + 0xc10c], eax
mov dword [esp + 0x20], 1
jmp 0x499fef
mov ecx, dword [ebp + 0x38]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [ebp]
push eax
push ecx
push 0x35
push edx
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x499fc1
mov eax, dword [ebp + 0x38]
push eax
call dword [0x10007084]
mov eax, dword [ebp + 0x38]
add esp, 4
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
push edx
push 0x1000851c
push eax
call dword [0x10007074]
add esp, 0x10
cmp eax, 2
jne 0x499fa1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov ecx, 1
sub ecx, edx
mov edx, 0
sbb edx, eax
mov eax, dword [esp + 0x2c]
add edi, ecx
adc eax, edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
jmp 0x499ea1
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
lea ecx, [eax + esi + 0x208]
push ecx
push 6
jmp 0x499f00
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*2]
shl edx, 5
lea eax, [edx + esi + 0x208]
push eax
push 6
jmp 0x499f00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49a22a
jmp 0x499ff7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49a047
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xc11c], 0xfffffff7
mov ecx, dword [ebp + 0xc]
push 0xfffffffffffffff7
inc ecx
inc edx
push ecx
push edx
lea eax, [esi + 0xc325]
push 0x100084ec
push eax
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x20]
shl ecx, 5
test eax, eax
mov dword [ecx + esi + 0x1330], 1
je 0x49a08f
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc11c], 0xfffffff8
mov edx, dword [ebp + 0xc]
push 0xfffffffffffffff8
inc edx
inc eax
push edx
push eax
lea ecx, [esi + 0xc325]
push 0x100084bc
push ecx
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*2]
shl edx, 5
mov dword [edx + esi + 0x132c], 1
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
lea edi, [eax + esi]
mov eax, dword [eax + esi + 0x1340]
test eax, eax
jbe 0x49a0cb
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
mov edi, 5
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov edx, dword [esi + 0x104]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x14], ebx
test edx, edx
mov dword [esp + 0x10], ecx
jbe 0x49a10c
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
cmp dword [eax + esi + 0x1318], 0
jne 0x49a0fe
inc ebx
mov dword [esp + 0x14], ebx
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jb 0x49a0e1
cmp ebx, 1
ja 0x49a13b
mov eax, dword [esi + 0xbed0]
test eax, eax
je 0x49a0ae
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49a0ae
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
mov edi, 4
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ecx, 1
mov dword [edi + 0x1318], ecx
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea edx, [eax + eax*2]
shl edx, 5
mov dword [edx + esi + 0x1344], ecx
jmp 0x49a47c
mov edx, dword [ebp + 0x38]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebp]
push ecx
push edx
push 5
push eax
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x49a22a
mov ecx, dword [ebp + 0x38]
push ecx
call dword [0x10007078]
mov ecx, dword [esi + 0xbe90]
mov edi, dword [esi + 0xbe94]
mov dword [esp + 0x30], edx
mov edx, ecx
add esp, 4
or edx, edi
mov dword [esp + 0x28], eax
je 0x49a22a
cmp ecx, eax
jne 0x49a1c3
cmp edi, dword [esp + 0x2c]
je 0x49a22a
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc11c], 0xfffffff8
mov eax, dword [ebp + 0xc]
push 0xfffffffffffffff8
inc eax
inc ecx
push eax
push ecx
lea edx, [esi + 0xc325]
push 0x10008488
push edx
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, 1
lea eax, [eax + eax*2]
shl eax, 5
mov dword [eax + esi + 0x132c], ecx
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea edx, [eax + eax*2]
shl edx, 5
mov dword [edx + esi + 0x1318], ecx
jmp 0x49a47c
mov eax, dword [esi + 8]
test eax, eax
je 0x49a265
mov eax, dword [esi + 0xbed0]
test eax, eax
jne 0x49a265
mov eax, dword [esi + 0x44]
push 0xffffffffffffffff
push eax
call dword [0x10007048]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xbe98], ecx
push eax
mov dword [esi + 0xbe9c], edx
call dword [0x10007044]
mov ecx, dword [ebp + 0xc]
push 0
push 0
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
shl ecx, 5
mov edi, dword [ecx + esi + 0x1340]
lea eax, [ecx + esi + 0x1340]
inc edi
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + edx*4 + 0xbd8c]
push eax
mov ecx, dword [esi + edx*4 + 0xbd88]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [0x1000700c]
test eax, eax
jne 0x49a30b
call dword [0x10007028]
mov dword [esi + 0xc11c], eax
push eax
lea eax, [esi + 0xc000]
lea ecx, [esi + 0xc325]
push eax
push 0x10008464
push 0x200
push ecx
call dword [0x10007070]
mov eax, dword [esp + 0x50]
add esp, 0x14
mov ecx, esi
mov byte [esi + 0xc525], 0
push eax
mov edi, 2
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ecx, 0xa
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov dword [ebx], 0x28
mov edx, dword [ebp + 0x38]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], 0x2000
mov eax, dword [ebp]
push 8
push ebx
push eax
call dword [0x100070d0]
test eax, eax
je 0x49a499
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x18]
lea edx, [eax*8]
sub edx, eax
lea eax, [esi + edx*4 + 0xbd78]
mov edx, dword [ebp + 0x38]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0049a588
test eax, eax
je 0x499947
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, dword [ebx + 0x18]
lea eax, [eax + eax*2]
shl eax, 5
mov edi, dword [eax + esi + 0x1338]
lea eax, [eax + esi + 0x1338]
add edi, ecx
mov ecx, 0
mov dword [eax], edi
mov edx, dword [eax + 4]
adc edx, ecx
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x18]
mov edi, dword [esi + 0xbec0]
add edi, edx
mov dword [esi + 0xbec0], edi
mov edx, dword [esi + 0xbec4]
adc edx, ecx
mov dword [esi + 0xbec4], edx
mov eax, dword [ebx + 0x18]
cmp eax, ecx
jne 0x49a30b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esi + ecx*4]
mov edx, dword [eax + 0xbd8c]
mov edi, dword [eax + 0xbd84]
lea ecx, [eax + 0xbd88]
add eax, 0xbd80
cmp edx, edi
jg 0x49a53f
jl 0x49a40e
mov ecx, dword [ecx]
mov edx, dword [eax]
cmp ecx, edx
jae 0x49a53f
push 0xffffffffffffffec
lea edx, [esi + 0xc325]
push 0x10008444
push edx
mov dword [esi + 0xc11c], 0xffffffec
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
mov ecx, dword [eax + esi + 0x1320]
lea eax, [eax + esi + 0x1320]
inc ecx
mov dword [eax], ecx
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov edx, dword [ecx + esi + 0x1320]
lea eax, [ecx + esi]
cmp edx, dword [esi + 0x40]
jb 0x49a47c
mov dword [eax + 0x1318], 1
mov edi, 3
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0049aa08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov edi, dword [0x10007028]
call edi
cmp eax, 0x3e5
je 0x49a53f
call edi
mov dword [esi + 0xc11c], eax
mov edx, dword [ebp + 0xc]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
shl ecx, 5
mov dword [ecx + esi + 0x1328], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0xc11c]
mov ecx, dword [esp + 0x3c]
inc eax
push edx
inc ecx
push eax
push ecx
push 0x10008414
lea edx, [esi + 0xc325]
push edx
call dword [0x100070b4]
mov ecx, dword [ebp + 0xc]
add esp, 0x14
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
shl eax, 5
mov ecx, dword [eax + esi + 0x1320]
lea eax, [eax + esi + 0x1320]
inc ecx
mov dword [eax], ecx
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov edx, dword [ecx + esi + 0x1320]
lea eax, [ecx + esi]
cmp edx, dword [esi + 0x40]
jb 0x49a47c
jmp 0x49a472
mov eax, dword [esp + 0x40]
mov dword [ebp + 4], 1
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x49a575
jg 0x49a558
cmp dword [eax], 0
jbe 0x49a575
mov ebp, dword [ebp + 0xc]
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 5
mov dword [ecx + esi + 0x1320], 0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8