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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0336
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00414e1f
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x5621f9
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 0x56222f
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 0x5626aa
cmp eax, dword [esi - 8]
jg 0x5626aa
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.00588f90
add esp, 4
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x562294
mov edx, 1
mov ecx, dword [0x621a1c]
test ecx, ecx
je 0x5622b2
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push 0x20007
push dword [edx*4 + 0x621ebc]
call ecx
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5622ce
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 0x562305
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov edi, dword [ebp - 0x14]
call fcn.00416adc
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 0x5626aa
cmp eax, dword [edi - 8]
jg 0x5626aa
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 0x562361
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 0x5626aa
cmp eax, dword [edi - 8]
jg 0x5626aa
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 0x5623af
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 0x5626aa
cmp eax, dword [edi - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], cx
cmp ebx, 0x9fbf1
jne 0x5623ed
mov edx, esi
mov ecx, dword [0x621a1c]
test ecx, ecx
je 0x56240b
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push 0x2000e
push dword [edx*4 + 0x621ebc]
call ecx
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x562427
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 0x56245c
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
call fcn.00416adc
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 0x5626aa
cmp eax, dword [esi - 8]
jg 0x5626aa
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 0x5624bb
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 0x5626aa
cmp eax, dword [esi - 8]
jg 0x5626aa
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 0x562526
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 0x56254a
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 0x5626aa
cmp eax, dword [esi - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x5625a9
cmp ebx, 0x9fbf1
jne 0x56258e
mov ecx, 1
mov edx, dword [0x621a1c]
test edx, edx
je 0x5625a9
inc eax
push eax
push esi
push 0x20002
push dword [ecx*4 + 0x621ebc]
call edx
push 0
push 0
mov edx, str.cocr.dll
mov ecx, esi
call fcn.00589470
add esp, 8
test al, al
je 0x5626b4
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5625d3
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5625f0
push 0x12b6
push 0x1000c
push dword [eax*4 + 0x621ebc]
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 0x56262a
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 0x5626aa
cmp eax, dword [ebx - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b1f0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56266e
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562687
push eax
push 0x10011
push dword [edx*4 + 0x621ebc]
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 0x562707
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562707
push 0x80070057
call fcn.00402740
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5626c3
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x5626e4
push 0x12b7
push 0x1000c
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5626f3
mov ecx, 1
test eax, eax
je 0x562707
push 0
push 0x10011
push dword [ecx*4 + 0x621ebc]
call eax
push str.rdd20.dll
push str.basicJ.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00589470
add esp, 8
test al, al
je 0x562816
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562737
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562754
push 0x12b6
push 0x1000b
push dword [eax*4 + 0x621ebc]
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 0x56278e
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 0x5626aa
cmp eax, dword [ebx - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b1f0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x5627da
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5627f3
push eax
push 0x10010
push dword [edx*4 + 0x621ebc]
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 0x562869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562869
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562825
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562846
push 0x12b7
push 0x1000b
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562855
mov ecx, 1
test eax, eax
je 0x562869
push 0
push 0x10010
push dword [ecx*4 + 0x621ebc]
call eax
push str.rdd20cn.dll
push str.basiccn.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00589470
add esp, 8
test al, al
je 0x562978
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562899
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5628b6
push 0x12b6
push 0x1000d
push dword [eax*4 + 0x621ebc]
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 0x5628f0
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 0x5626aa
cmp eax, dword [ebx - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b1f0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56293c
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562955
push eax
push 0x10012
push dword [edx*4 + 0x621ebc]
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 0x5629cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5629cb
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562987
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x5629a8
push 0x12b7
push 0x1000d
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5629b7
mov ecx, 1
test eax, eax
je 0x5629cb
push 0
push 0x10012
push dword [ecx*4 + 0x621ebc]
call eax
push str.rdd20ct.dll
push str.basicct.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00589470
add esp, 8
test al, al
je 0x562ada
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5629fb
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562a18
push 0x12b6
push 0x1000e
push dword [eax*4 + 0x621ebc]
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 0x562a52
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 0x5626aa
cmp eax, dword [ebx - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b1f0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x562a9e
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562ab7
push eax
push 0x10013
push dword [edx*4 + 0x621ebc]
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 0x562b2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562b2d
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562ae9
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562b0a
push 0x12b7
push 0x1000e
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562b19
mov ecx, 1
test eax, eax
je 0x562b2d
push 0
push 0x10013
push dword [ecx*4 + 0x621ebc]
call eax
push str.rdd20kr.dll
push str.basickr.ocr
mov edx, str.cnreeaoc.dll
mov ecx, esi
call fcn.00589470
add esp, 8
test al, al
je 0x562c3a
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562b5d
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562b7a
push 0x12b6
push 0x1000f
push dword [eax*4 + 0x621ebc]
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 0x562bb4
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 0x5626aa
cmp eax, dword [ebx - 8]
jg 0x5626aa
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b1f0
xor edx, edx
cmp dword [ebp - 0x1c], 0x9fbf1
jne 0x562bfe
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562c17
push eax
push 0x10014
push dword [edx*4 + 0x621ebc]
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 0x562c8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562c8d
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562c49
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562c6a
push 0x12b7
push 0x1000f
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562c79
mov ecx, 1
test eax, eax
je 0x562c8d
push 0
push 0x10014
push dword [ecx*4 + 0x621ebc]
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 0x562cdd
test ebx, ebx
je 0x562cd6
push ebx
call fcn.0040d50c
add esp, 4
mov eax, 0x1235
jmp 0x562cef
test ebx, ebx
je 0x562cea
push ebx
call fcn.0040d50c
add esp, 4
mov eax, 0x1236
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562d01
mov ecx, 1
mov edx, dword [0x621a3c]
test edx, edx
je 0x562d1a
push eax
push 0x10001
push dword [ecx*4 + 0x621ebc]
call edx
push 0x23b1
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.0058f590
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 0x562d5c
mov ecx, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562d6b
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562d86
push dword [ebp - 0x2c]
push 0x10006
push dword [eax*4 + 0x621ebc]
call ecx
call fcn.0058b490
neg eax
sbb eax, eax
xor edx, edx
neg eax
add eax, 0x123e
cmp ebx, 0x9fbf1
jne 0x562da5
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562dbe
push eax
push 0x10009
push dword [edx*4 + 0x621ebc]
call ecx
push 0x5ead6c
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 0x562de5
or eax, 0xffffffff
jmp 0x562dea
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 0x562e25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ead78
push 0x5ead7c
lea ecx, [ebp - 0x10]
call fcn.00403990
cmp ebx, 0x9fbf1
jne 0x562e46
mov ebx, 1
jmp 0x562e48
xor ebx, ebx
mov edx, dword [0x621a1c]
test edx, edx
je 0x562e69
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0xa000f
push dword [ebx*4 + 0x621ebc]
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 0x562e8c
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 0x562eac
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 0x562ec9
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 0x562ee6
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 0x562f04
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