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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49c990
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4d58b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 4
call fcn.0043dab4
xor edi, edi
add esp, 4
cmp eax, edi
je 0x403dc4
lea ecx, [esp + 0x3c]
mov dword [eax], ecx
jmp 0x403dc6
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
push 4
mov dword [esp + 0x7c], 1
call fcn.0043dab4
add esp, 4
cmp eax, edi
je 0x403df4
lea edx, [esp + 0x54]
mov dword [eax], edx
jmp 0x403df6
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
push 0x4c3010
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 3
call fcn.00409870
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 4
call fcn.004048f0
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c301c
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 5
call fcn.004048f0
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c2d30
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 6
call fcn.004048f0
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c3028
lea ecx, [esp + 0x20]
call fcn.00409870
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 7
call fcn.004048f0
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403f23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043dffa
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403f3d
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x78], 8
call fcn.0043dffa
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x403f6c
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 9
movzx ecx, byte [0x4daea8]
shl ecx, 9
add ecx, str.state
push ecx
lea ecx, [esp + 0x24]
call fcn.00409870
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push 0x4dfcd0
mov bl, 0xa
push eax
mov byte [esp + 0x84], bl
call fcn.00404640
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 0xb
call fcn.00408890
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push edi
push 1
push 1
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00483370
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
add esp, 0x18
sar eax, 2
mov dword [esp + 0x18], edi
cmp eax, edi
jbe 0x404198
jmp 0x404030
mov ecx, dword [0x4dfcc0]
mov edx, dword [0x4dfcac]
mov dword [esp + 0x28], ecx
mov edi, ecx
mov ecx, dword [ecx]
mov dword [esp + 0x24], edx
mov ebx, edx
mov dword [esp + 0x30], ecx
mov esi, edx
cmp dword [esp + 0x18], eax
jb 0x40405b
call fcn.0045e7a3
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
lea edx, [edx + eax*4]
test ebx, ebx
je 0x40406e
mov ebx, dword [ebx]
jmp 0x404070
xor ebx, ebx
mov ecx, dword [ebx]
test esi, esi
je 0x40407a
mov eax, dword [esi]
jmp 0x40407c
xor eax, eax
mov eax, dword [eax]
push edi
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, edx
call fcn.00406fa0
mov edi, dword [eax + 4]
add esp, 0x14
cmp esi, dword [eax]
je 0x4040a1
call fcn.0045e7a3
test esi, esi
je 0x4040ab
cmp esi, dword [esp + 0x24]
je 0x4040b0
call fcn.0045e7a3
cmp edi, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
jne 0x40417e
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
sar ecx, 2
cmp edi, ecx
jb 0x4040d2
call fcn.0045e7a3
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + edi*4]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x404134
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404126
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404126
push eax
call fcn.00408820
mov dword [esp + 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404119
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x404134
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409730
movzx eax, byte [0x4daea8]
shl eax, 9
lea edx, [eax + str.Images_path]
push edx
lea eax, [eax + str.state]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404330
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
sar ecx, 2
cmp edi, ecx
jb 0x404169
call fcn.0045e7a3
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + edi*4]
push 1
push ecx
push eax
call dword [0x49f3b8]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
inc edi
sar eax, 2
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x404030
xor edi, edi
movzx eax, byte [0x4daea8]
shl eax, 9
lea edx, [eax + str.Images_path]
push edx
lea eax, [eax + str.state]
push eax
lea ecx, [esp + 0x24]
call fcn.00404330
mov esi, dword [esp + 0x1c]
push 1
push edi
push edi
push esi
push 0x4c3034
push edi
call dword [0x49f448]
mov byte [esp + 0x78], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x78], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 1
mov esi, dword [esp + 0x60]
cmp esi, edi
je 0x404282
mov eax, dword [esp + 0x64]
mov ebx, eax
cmp esi, eax
je 0x404279
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40426e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x404250
mov esi, dword [esp + 0x60]
push esi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.0043dae3
mov dword [esp + 0x7c], 0xffffffff
mov esi, dword [esp + 0x4c]
add esp, 4
cmp esi, edi
je 0x4042e7
mov eax, dword [esp + 0x4c]
mov ebx, eax
cmp esi, eax
je 0x4042de
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4042d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4042b5
mov esi, dword [esp + 0x48]
push esi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret