Function at 0x561d10
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae176
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00414eab
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x561d59
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561d8f
push 0x104
lea ecx, [ebp - 0x28]
call fcn.00402c20
mov esi, dword [ebp - 0x28]
push 0x104
push esi
push str._APPDATA_CanonIJ_Scan_Utility
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [esi - 8]
jg 0x56220a
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov edi, esp
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x30], eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00587320
add esp, 4
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x561df4
mov edx, 1
mov ecx, dword [0x61fa1c]
test ecx, ecx
je 0x561e12
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push 0x20007
push dword [edx*4 + 0x61feb8]
call ecx
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x561e2e
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov esi, 1
mov eax, dword [edi - 8]
mov ecx, esi
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561e65
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov edi, dword [ebp - 0x14]
call fcn.00416b46
push 0x104
push edi
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [edi - 8]
jg 0x56220a
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, esi
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561ec1
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [edi - 8]
jg 0x56220a
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, esi
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561f0f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov edi, dword [ebp - 0x14]
push str.SUALMLIB.dll
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [edi - 8]
push edi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [edi - 8]
jg 0x56220a
xor ecx, ecx
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], cx
cmp ebx, 0x9fbf1
jne 0x561f4d
mov edx, esi
mov ecx, dword [0x61fa1c]
test ecx, ecx
je 0x561f6b
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push 0x2000e
push dword [edx*4 + 0x61feb8]
call ecx
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x561f87
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x561fbc
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
call fcn.00416b46
push 0x104
push esi
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [esi - 8]
jg 0x56220a
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x56201b
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [esi - 8]
jg 0x56220a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x24]
push str.OCRDicV3
call fcn.00402f60
mov byte [ebp - 4], 3
mov ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x562086
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00402c20
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5620aa
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [esi - 8]
jg 0x56220a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x562109
cmp ebx, 0x9fbf1
jne 0x5620ee
mov ecx, 1
mov edx, dword [0x61fa1c]
test edx, edx
je 0x562109
inc eax
push eax
push esi
push 0x20002
push dword [ecx*4 + 0x61feb8]
call edx
push 0
push 0
mov edx, str.cocr.dll
mov ecx, esi
call fcn.00587650
add esp, 8
test al, al
je 0x562214
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562133
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562150
push 0x12b6
push 0x1000c
push dword [eax*4 + 0x61feb8]
call ecx
lea eax, [esi - 0x10]
push eax
call fcn.00403660
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 4
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x56218a
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov ebx, dword [ebp - 0x20]
push str.cocr.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [ebx - 8]
jg 0x56220a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.005891c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x5621ce
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x5621e7
push eax
push 0x10011
push dword [edx*4 + 0x61feb8]
call ecx
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x562267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562267
push 0x80070057
call fcn.00402740
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562223
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x562244
push 0x12b7
push 0x1000c
push dword [ecx*4 + 0x61feb8]
call eax
mov eax, dword [0x61fa38]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562253
mov ecx, 1
test eax, eax
je 0x562267
push 0
push 0x10011
push dword [ecx*4 + 0x61feb8]
call eax
push str.rdd20.dll
push str.basicJ.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00587650
add esp, 8
test al, al
je 0x562376
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562297
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x5622b4
push 0x12b6
push 0x1000b
push dword [eax*4 + 0x61feb8]
call ecx
lea eax, [esi - 0x10]
push eax
call fcn.00403660
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 5
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x5622ee
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov ebx, dword [ebp - 0x20]
push str.cnreeaoc.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [ebx - 8]
jg 0x56220a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.005891c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56233a
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562353
push eax
push 0x10010
push dword [edx*4 + 0x61feb8]
call ecx
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5623c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5623c9
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562385
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x5623a6
push 0x12b7
push 0x1000b
push dword [ecx*4 + 0x61feb8]
call eax
mov eax, dword [0x61fa38]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5623b5
mov ecx, 1
test eax, eax
je 0x5623c9
push 0
push 0x10010
push dword [ecx*4 + 0x61feb8]
call eax
push str.rdd20cn.dll
push str.basiccn.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00587650
add esp, 8
test al, al
je 0x5624d8
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5623f9
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562416
push 0x12b6
push 0x1000d
push dword [eax*4 + 0x61feb8]
call ecx
lea eax, [esi - 0x10]
push eax
call fcn.00403660
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 6
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x562450
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov ebx, dword [ebp - 0x20]
push str.cnreeaoc.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [ebx - 8]
jg 0x56220a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.005891c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56249c
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x5624b5
push eax
push 0x10012
push dword [edx*4 + 0x61feb8]
call ecx
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x56252b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x56252b
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5624e7
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x562508
push 0x12b7
push 0x1000d
push dword [ecx*4 + 0x61feb8]
call eax
mov eax, dword [0x61fa38]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562517
mov ecx, 1
test eax, eax
je 0x56252b
push 0
push 0x10012
push dword [ecx*4 + 0x61feb8]
call eax
push str.rdd20ct.dll
push str.basicct.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00587650
add esp, 8
test al, al
je 0x56263a
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x56255b
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562578
push 0x12b6
push 0x1000e
push dword [eax*4 + 0x61feb8]
call ecx
lea eax, [esi - 0x10]
push eax
call fcn.00403660
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 7
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x5625b2
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov ebx, dword [ebp - 0x20]
push str.cnreeaoc.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [ebx - 8]
jg 0x56220a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.005891c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x5625fe
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562617
push eax
push 0x10013
push dword [edx*4 + 0x61feb8]
call ecx
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x56268d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x56268d
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562649
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x56266a
push 0x12b7
push 0x1000e
push dword [ecx*4 + 0x61feb8]
call eax
mov eax, dword [0x61fa38]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562679
mov ecx, 1
test eax, eax
je 0x56268d
push 0
push 0x10013
push dword [ecx*4 + 0x61feb8]
call eax
push str.rdd20kr.dll
push str.basickr.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00587650
add esp, 8
test al, al
je 0x56279a
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5626bd
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x5626da
push 0x12b6
push 0x1000f
push dword [eax*4 + 0x61feb8]
call ecx
lea eax, [esi - 0x10]
push eax
call fcn.00403660
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 8
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x562714
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00402c20
mov ebx, dword [ebp - 0x20]
push str.cnreeaoc.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x56220a
cmp eax, dword [ebx - 8]
jg 0x56220a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.005891c0
xor edx, edx
cmp dword [ebp - 0x1c], 0x9fbf1
jne 0x56275e
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x562777
push eax
push 0x10014
push dword [edx*4 + 0x61feb8]
call ecx
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5627ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5627ed
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5627a9
mov ecx, 1
mov eax, dword [0x61fa38]
test eax, eax
je 0x5627ca
push 0x12b7
push 0x1000f
push dword [ecx*4 + 0x61feb8]
call eax
mov eax, dword [0x61fa38]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5627d9
mov ecx, 1
test eax, eax
je 0x5627ed
push 0
push 0x10014
push dword [ecx*4 + 0x61feb8]
call eax
push 0
push 0
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
lea ecx, [ebp - 0x3c]
push ebx
call fcn.00409880
push ebx
mov ebx, dword [ebp - 0x3c]
push ebx
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
call fcn.0052a743
add esp, 4
cmp eax, 1
jne 0x56283d
test ebx, ebx
je 0x562836
push ebx
call fcn.0040d50c
add esp, 4
mov eax, 0x1235
jmp 0x56284f
test ebx, ebx
je 0x56284a
push ebx
call fcn.0040d50c
add esp, 4
mov eax, 0x1236
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562861
mov ecx, 1
mov edx, dword [0x61fa38]
test edx, edx
je 0x56287a
push eax
push 0x10001
push dword [ecx*4 + 0x61feb8]
call edx
push 0x23b1
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.0058d5b0
push 0
push 0
push dword [eax]
call fcn.00529bcc
mov dword [ebp - 0x2c], eax
add esp, 0x10
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
add eax, 0xfffffff0
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5628bc
mov ecx, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5628cb
mov eax, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x5628e6
push dword [ebp - 0x2c]
push 0x10006
push dword [eax*4 + 0x61feb8]
call ecx
call fcn.00589460
neg eax
sbb eax, eax
xor edx, edx
neg eax
add eax, 0x123e
cmp ebx, 0x9fbf1
jne 0x562905
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x56291e
push eax
push 0x10009
push dword [edx*4 + 0x61feb8]
call ecx
push str.1.4.0.11007
lea ecx, [ebp - 0x10]
call fcn.00405600
mov byte [ebp - 4], 9
push 0x2e
push dword [ebp - 0x10]
call fcn.00529be4
add esp, 8
test eax, eax
jne 0x562945
or eax, 0xffffffff
jmp 0x56294a
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407be0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004032d0
mov byte [ebp - 4], 9
or ecx, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x562985
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5e8d70
push 0x5e8d74
lea ecx, [ebp - 0x10]
call fcn.00403990
cmp ebx, 0x9fbf1
jne 0x5629a6
mov ebx, 1
jmp 0x5629a8
xor ebx, ebx
mov edx, dword [0x61fa1c]
test edx, edx
je 0x5629c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0xa000f
push dword [ebx*4 + 0x61feb8]
call edx
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5629ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x562a0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x562a29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x562a46
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x562a64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret