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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461e2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
push 0x406
mov edi, ecx
call fcn.00455409
mov ebp, dword [0x466584]
push 0
push 0
mov esi, eax
mov eax, dword [esi + 0x1c]
push 0x1037
push eax
call ebp
mov ecx, dword [esi + 0x1c]
or eax, 0x20
push eax
push 0
push 0x1036
push ecx
call ebp
push 0
push 0x12
push 0
push 0x467ba0
push 0
mov ecx, esi
call fcn.004502e1
push 1
push 0x4b
push 0
push 0x467ba0
push 1
mov ecx, esi
call fcn.004502e1
push 2
push 0x78
push 0
push 0x467ba0
push 2
mov ecx, esi
call fcn.004502e1
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x9c], 0
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 1
call fcn.00415db0
mov eax, dword [edi + 0x78]
lea ebx, [edi + 0x74]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x9c], 2
mov dword [esp + 0x2c], ebx
je 0x408cc8
push eax
call fcn.00455c9e
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
lea eax, [edi + 1]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push str._02d
push eax
call fcn.00406160
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push edi
push 5
mov ecx, esi
call fcn.00450334
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push str.SAVE_04d.DAT
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.00406160
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
lea ecx, [esp + 0x3c]
call fcn.00415e60
test eax, eax
je 0x408e7e
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x408d42
mov eax, dword [eax + 0xc]
jmp 0x408d44
xor eax, eax
imul eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [eax + edx + 8]
test eax, eax
jl 0x408d5a
cmp eax, 0x1a
jb 0x408d5c
xor eax, eax
mov eax, dword [eax*4 + 0x47e2b0]
push 0
push 0
push 0
push 0
push eax
push 1
push 1
push edi
mov ecx, esi
call fcn.00450380
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.00442878
add esp, 4
or ebx, 0xffffffff
test eax, eax
je 0x408da4
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jmp 0x408da8
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x30]
push edx
call fcn.00442878
add esp, 4
test eax, eax
je 0x408dc2
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
jmp 0x408dc6
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.00442878
add esp, 4
test eax, eax
je 0x408de0
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
jmp 0x408de4
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x30]
push eax
call fcn.00442878
add esp, 4
test eax, eax
je 0x408dfa
mov ebx, dword [eax + 0xc]
jmp 0x408dfc
xor ebx, ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.00442878
add esp, 4
test eax, eax
je 0x408e13
mov ebp, dword [eax + 0x10]
inc ebp
jmp 0x408e15
xor ebp, ebp
lea edx, [esp + 0x30]
push edx
call fcn.00442878
add esp, 4
test eax, eax
je 0x408e30
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x408e32
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push ebx
push ebp
push eax
lea edx, [esp + 0x2c]
push str._04d__02d__02d__02d:_02d:_02d
push edx
call fcn.00406160
mov eax, dword [esp + 0x34]
add esp, 0x20
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push edi
mov ecx, esi
call fcn.00450380
mov ebx, dword [esp + 0x2c]
mov ebp, 1
mov dword [esp + 0x24], ebp
jmp 0x408eb2
mov ecx, dword [str.__________]
push 0
push 0
push 0
push 0
push ecx
push 1
push 1
push edi
mov ecx, esi
call fcn.00450380
push 0
push 0
push 0
push 0
push str._____________:__:__
push 1
push 2
push edi
mov ecx, esi
call fcn.00450380
mov edx, dword [ebx + 4]
test edx, edx
jne 0x408ebd
xor ecx, ecx
jmp 0x408ec5
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x408ee2
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x408ee2
mov eax, dword [ebx + 8]
mov dword [eax], ebp
add eax, 4
mov dword [ebx + 8], eax
jmp 0x408ef4
mov eax, dword [ebx + 8]
lea edx, [esp + 0x24]
push edx
push 1
push eax
mov ecx, ebx
call fcn.00408880
mov edi, dword [esp + 0x28]
cmp edi, 0x1e
jl 0x408cd1
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 1
call fcn.00407e00
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x94]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret