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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0706
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.0041505f
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x5621b9
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 0x5621ef
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [esi - 8]
jg 0x56266a
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.00589260
add esp, 4
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x562254
mov edx, 1
mov ecx, dword [0x621a1c]
test ecx, ecx
je 0x562272
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push 0x20007
push dword [edx*4 + 0x621ebc]
call ecx
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x56228e
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 0x5622c5
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov edi, dword [ebp - 0x14]
call fcn.00416d27
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [edi - 8]
jg 0x56266a
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 0x562321
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [edi - 8]
jg 0x56266a
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 0x56236f
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [edi - 8]
jg 0x56266a
xor ecx, ecx
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], cx
cmp ebx, 0x9fbf1
jne 0x5623ad
mov edx, esi
mov ecx, dword [0x621a1c]
test ecx, ecx
je 0x5623cb
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push 0x2000e
push dword [edx*4 + 0x621ebc]
call ecx
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5623e7
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 0x56241c
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00402c20
mov esi, dword [ebp - 0x18]
call fcn.00416d27
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [esi - 8]
jg 0x56266a
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 0x56247b
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [esi - 8]
jg 0x56266a
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 0x5624e6
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 0x56250a
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [esi - 8]
jg 0x56266a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x562569
cmp ebx, 0x9fbf1
jne 0x56254e
mov ecx, 1
mov edx, dword [0x621a1c]
test edx, edx
je 0x562569
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.00589740
add esp, 8
test al, al
je 0x562674
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562593
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5625b0
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 0x5625ea
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [ebx - 8]
jg 0x56266a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b4c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56262e
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562647
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 0x5626c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5626c7
push 0x80070057
call fcn.00402740
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562683
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x5626a4
push 0x12b7
push 0x1000c
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5626b3
mov ecx, 1
test eax, eax
je 0x5626c7
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.00589740
add esp, 8
test al, al
je 0x5627d6
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5626f7
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562714
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 0x56274e
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [ebx - 8]
jg 0x56266a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b4c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x56279a
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5627b3
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 0x562829
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562829
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5627e5
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562806
push 0x12b7
push 0x1000b
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562815
mov ecx, 1
test eax, eax
je 0x562829
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.00589740
add esp, 8
test al, al
je 0x562938
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562859
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562876
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 0x5628b0
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [ebx - 8]
jg 0x56266a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b4c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x5628fc
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562915
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 0x56298b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x56298b
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562947
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562968
push 0x12b7
push 0x1000d
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562977
mov ecx, 1
test eax, eax
je 0x56298b
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.00589740
add esp, 8
test al, al
je 0x562a9a
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x5629bb
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x5629d8
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 0x562a12
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [ebx - 8]
jg 0x56266a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b4c0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, 0x9fbf1
jne 0x562a5e
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562a77
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 0x562aed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562aed
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562aa9
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562aca
push 0x12b7
push 0x1000e
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562ad9
mov ecx, 1
test eax, eax
je 0x562aed
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.00589740
add esp, 8
test al, al
je 0x562bfa
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562b1d
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562b3a
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 0x562b74
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.00528e72
add esp, 8
test eax, eax
js 0x56266a
cmp eax, dword [ebx - 8]
jg 0x56266a
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x20]
call fcn.0058b4c0
xor edx, edx
cmp dword [ebp - 0x1c], 0x9fbf1
jne 0x562bbe
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562bd7
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 0x562c4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x562c4d
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562c09
mov ecx, 1
mov eax, dword [0x621a3c]
test eax, eax
je 0x562c2a
push 0x12b7
push 0x1000f
push dword [ecx*4 + 0x621ebc]
call eax
mov eax, dword [0x621a3c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562c39
mov ecx, 1
test eax, eax
je 0x562c4d
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.0052a773
add esp, 4
cmp eax, 1
jne 0x562c9d
test ebx, ebx
je 0x562c96
push ebx
call fcn.0040d533
add esp, 4
mov eax, 0x1235
jmp 0x562caf
test ebx, ebx
je 0x562caa
push ebx
call fcn.0040d533
add esp, 4
mov eax, 0x1236
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x562cc1
mov ecx, 1
mov edx, dword [0x621a3c]
test edx, edx
je 0x562cda
push eax
push 0x10001
push dword [ecx*4 + 0x621ebc]
call edx
push 0x23b1
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.0058f8e0
push 0
push 0
push dword [eax]
call fcn.00529bfc
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 0x562d1c
mov ecx, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp ebx, 0x9fbf1
jne 0x562d2b
mov eax, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562d46
push dword [ebp - 0x2c]
push 0x10006
push dword [eax*4 + 0x621ebc]
call ecx
call fcn.0058b760
neg eax
sbb eax, eax
xor edx, edx
neg eax
add eax, 0x123e
cmp ebx, 0x9fbf1
jne 0x562d65
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x562d7e
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.00529c14
add esp, 8
test eax, eax
jne 0x562da5
or eax, 0xffffffff
jmp 0x562daa
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 0x562de5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ead74
push 0x5ead78
lea ecx, [ebp - 0x10]
call fcn.00403990
cmp ebx, 0x9fbf1
jne 0x562e06
mov ebx, 1
jmp 0x562e08
xor ebx, ebx
mov edx, dword [0x621a1c]
test edx, edx
je 0x562e29
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 0x562e4c
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 0x562e6c
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 0x562e89
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 0x562ea6
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 0x562ec4
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