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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1009e487
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x100b8070]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x100b8070]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x597c4]
cmp ecx, 7
mov dword [esp + 0x24], edi
je 0x1003637d
fldz
mov dword [edi + 0x38], 0
fst dword [edi + 0x48]
xor eax, eax
fst dword [edi + 0x44]
fstp dword [edi + 0x4c]
jmp 0x1003744f
cmp dword [eax + 0x597c8], 7
mov ecx, dword [eax + 0x5975c]
mov dword [esp + 0x18], ecx
je 0x100363c3
mov esi, dword [edi + 0x30]
cmp dword [edi + 0x2c], esi
lea ebx, [edi + 0x28]
jbe 0x100363a0
call fcn.10080d40
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x1c], eax
jbe 0x100363b5
call fcn.10080d40
mov eax, dword [esp + 0x1c]
push esi
push ebx
push eax
push ebx
lea edx, [esp + 0x7c]
push edx
call fcn.10013f80
mov ecx, dword [edi + 0x2c]
test ecx, ecx
lea eax, [edi + 0x28]
mov dword [esp + 0x28], eax
je 0x100363db
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 4
jne 0x100363e9
mov ecx, edi
call fcn.10037500
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x4ec], 0
jne 0x10036402
cmp dword [eax + 0x4f4], 0
je 0x10036707
cmp dword [edi + 0x38], 0
jne 0x10036707
lea ebx, [edi + 0x3c]
push ebx
call fcn.10019b80
fld dword [edi + 0x48]
fldz
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x10036443
fld dword [edi + 0x44]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x10036443
fld dword [edi + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10036707
jmp 0x10036445
fstp st(0)
mov ecx, dword [edi + 0x14]
add ecx, 0xc
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1005a260
test eax, eax
je 0x10036707
fld dword [edi + 0x48]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x54]
lea ecx, [esp + 0x50]
fld dword [esp + 0x54]
fstp dword [esp + 0x70]
fld dword [edi + 0x44]
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fstp dword [esp + 0x6c]
fld dword [edi + 0x4c]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fstp dword [esp + 0x74]
fldz
fst dword [esp + 0x5c]
fstp dword [esp + 0x78]
fld dword [eax + 0x34]
fstp dword [esp + 0x30]
fld dword [eax + 0x30]
fstp dword [esp + 0x2c]
fld dword [eax + 0x38]
fstp dword [esp + 0x34]
fld dword [eax + 0x3c]
lea eax, [esp + 0x2c]
fstp dword [esp + 0x38]
call fcn.10003a50
fst qword [esp + 0x64]
fcomp qword [0x100a9908]
fnstsw ax
test ah, 5
jp 0x10036707
call fcn.1007f360
test eax, eax
je 0x10036707
fld dword [esp + 0x50]
sub esp, 0x10
fsub dword [esp + 0x3c]
fst qword [esp + 0x54]
fld dword [esp + 0x64]
fsub dword [esp + 0x40]
fst qword [esp + 0x2c]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x24]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10036545
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10021920
fld qword [0x100a9840]
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x1003658c
fld dword [esp + 0x54]
mov dword [edi + 0x74], 0x211
fld qword [esp + 0x1c]
mov dword [edi + 0x78], 1
fmul st(3)
fdiv st(2)
fsubp st(1)
fstp dword [edi + 0x68]
fld dword [esp + 0x50]
fld qword [esp + 0x44]
fmulp st(3)
fxch st(2)
fdivrp st(1)
fsubp st(1)
fstp dword [edi + 0x64]
jmp 0x10036590
fstp st(0)
fstp st(0)
mov edx, dword [edi + 0x74]
mov esi, dword [esp + 0x18]
lea eax, [edi + 0x64]
mov ecx, 2
call fcn.10056b10
cmp eax, 1
jne 0x100365b8
mov edx, esi
push edx
call fcn.10021900
mov dword [edi + 0x78], 0
fld qword [0x100a98a0]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x100366fd
mov eax, esi
push eax
call fcn.10021900
fld qword [esp + 0x44]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x2c]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x24]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10036625
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10021920
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x10036630
call fcn.1007ee30
test eax, eax
jne 0x100366c1
mov esi, dword [esp + 0x6c]
mov ecx, dword [edi + 0x40]
mov edx, dword [ebx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x84]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x88]
push ecx
push edx
mov dword [eax + 0xc], esi
call fcn.10036170
test eax, eax
jne 0x1003669c
mov ecx, dword [esp + 0x18]
fld dword [ecx + 0x3c]
push ecx
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fadd qword [0x100a9980]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.10021920
mov esi, dword [esp + 0x14]
cmp esi, 5
jne 0x100366b4
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.1007f0a0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100366ca
call fcn.1007ee30
test eax, eax
jne 0x100366dc
add esi, 1
cmp esi, 6
mov dword [esp + 0x14], esi
jl 0x10036630
jmp 0x100366fd
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
add edx, 0xc
call fcn.1005a610
mov dword [edi + 0x38], 1
cmp dword [edi + 0x38], 0
je 0x1003744a
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x4c0], 0
je 0x10036ad2
lea esi, [esp + 0x40]
push esi
lea esi, [esp + 0x48]
push esi
lea ecx, [eax + 0xc]
lea esi, [esp + 0x58]
push esi
lea edx, [eax + 0x59760]
mov eax, dword [eax + 0x5975c]
push ecx
push edx
push eax
mov dword [esp + 0x58], 0
call fcn.10057a30
test eax, eax
je 0x10036ad2
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.1006f570
lea esi, [esp + 0x1c]
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c0], 0
call fcn.1006f9d0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x1c0], 1
cmp dword [ebx + 4], 0
jne 0x10036a7c
fld dword [esp + 0x54]
lea eax, [esp + 0x2c]
fstp dword [esp + 0x70]
lea ecx, [esp + 0x6c]
fld dword [esp + 0x50]
fstp dword [esp + 0x6c]
fld dword [esp + 0x58]
fstp dword [esp + 0x74]
fldz
fstp dword [esp + 0x78]
fld dword [ebx + 0x34]
fstp dword [esp + 0x30]
fld dword [ebx + 0x30]
fstp dword [esp + 0x2c]
fld dword [ebx + 0x38]
fstp dword [esp + 0x34]
fld dword [ebx + 0x3c]
fstp dword [esp + 0x38]
call fcn.10003a50
fstp qword [esp + 0x64]
call fcn.1007f360
neg eax
sbb eax, eax
and eax, 0xfffffff6
add eax, 0x14
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x10036a7c
fld dword [esp + 0x50]
sub esp, 0x10
fsub dword [esp + 0x3c]
fst qword [esp + 0x7c]
fld dword [esp + 0x64]
fsub dword [esp + 0x40]
fst qword [esp + 0x94]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x24]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10036871
push ebx
call fcn.10021900
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10021920
fld qword [0x100a98b0]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 5
jp 0x1003689e
fld dword [esp + 0x54]
mov dword [edi + 0x74], 0x211
fstp dword [edi + 0x68]
mov dword [edi + 0x78], 1
fld dword [esp + 0x50]
fstp dword [edi + 0x64]
mov edx, dword [edi + 0x74]
lea eax, [edi + 0x64]
mov ecx, 3
mov esi, ebx
call fcn.10056b10
cmp eax, 1
jne 0x100368c2
push ebx
call fcn.10021900
mov dword [edi + 0x78], 0
fld qword [0x100a98b0]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x10036a43
cmp dword [edi + 0x78], 0
jne 0x10036a43
push ebx
call fcn.10021900
fld qword [esp + 0x6c]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x94]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x24]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x1003693a
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.10021920
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], 0
call fcn.1007ee00
test eax, eax
jne 0x100369c7
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.1007f0a0
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x100369ba
push 0x63
lea ecx, [esp + 0x119]
push 0
push ecx
mov byte [esp + 0x120], 0
call fcn.10082ee0
add esp, 0xc
push esi
lea edx, [esp + 0x118]
push 0x100a6340
push edx
call fcn.100817e4
mov ecx, dword [0x100bb2cc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x98]
add esp, 0xc
lea edx, [esp + 0x114]
push edx
call eax
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100369d0
call fcn.1007ee00
test eax, eax
jne 0x100369e6
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x10036946
jmp 0x10036a43
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x5dc
call esi
push ebx
call fcn.10021900
mov edi, dword [edi + 0x14]
mov ecx, dword [edi + 0x5975c]
add edi, 0xc
push edi
call fcn.10058b10
push 0x1f4
call esi
call fcn.10058ff0
push 0x1f4
call esi
mov dword [ebx + 4], 1
call fcn.1007ee00
test eax, eax
je 0x10036a43
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x98]
push str.CloseMerchant__
call eax
mov byte [esp + 0x1c0], 0
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 0x10036a6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x8c]
call fcn.100055f0
jmp 0x1003744a
mov byte [esp + 0x1c0], 0
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 0x10036aa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x10c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10036ad2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x4ac], 0
je 0x10036e9c
lea esi, [esp + 0x40]
push esi
lea esi, [esp + 0x48]
push esi
lea ecx, [eax + 0xc]
lea esi, [esp + 0x58]
push esi
lea edx, [eax + 0x59760]
mov eax, dword [eax + 0x5975c]
push ecx
push edx
push eax
mov dword [esp + 0x58], 0
call fcn.10057f10
test eax, eax
je 0x10036e9c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x94]
push eax
call fcn.1006f570
lea esi, [esp + 0x14]
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c0], 2
call fcn.1006f9d0
mov byte [esp + 0x1c0], 3
mov ebx, dword [esp + 0x14]
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.10001820
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
call fcn.10058a00
test eax, eax
jne 0x10036e49
fld dword [esp + 0x54]
mov esi, edi
fstp dword [esp + 0x70]
lea eax, [esp + 0x2c]
fld dword [esp + 0x50]
lea ecx, [esp + 0x6c]
fstp dword [esp + 0x6c]
fld dword [esp + 0x58]
fstp dword [esp + 0x74]
fldz
fstp dword [esp + 0x78]
fld dword [esi + 0x34]
fstp dword [esp + 0x30]
fld dword [esi + 0x30]
fstp dword [esp + 0x2c]
fld dword [esi + 0x38]
fstp dword [esp + 0x34]
fld dword [esi + 0x3c]
fstp dword [esp + 0x38]
call fcn.10003a50
fst qword [esp + 0x64]
fcomp qword [0x100a9918]
fnstsw ax
test ah, 5
jp 0x10036e49
fld dword [esp + 0x50]
sub esp, 0x10
fsub dword [esp + 0x3c]
fst qword [esp + 0x94]
fld dword [esp + 0x64]
fsub dword [esp + 0x40]
fst qword [esp + 0x7c]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x2c]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10036c46
push esi
call fcn.10021900
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.10021920
fld qword [0x100a98b0]
mov edi, dword [esp + 0x24]
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x10036c9c
fld dword [esp + 0x54]
mov dword [edi + 0x74], 0x211
fld qword [esp + 0x6c]
mov dword [edi + 0x78], 1
fld qword [0x100a9840]
fmul st(1), st(0)
fxch st(1)
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [edi + 0x68]
fld qword [esp + 0x84]
fmulp st(1)
fdivrp st(1)
fsubr dword [esp + 0x50]
fstp dword [edi + 0x64]
jmp 0x10036c9e
fstp st(0)
mov edx, dword [edi + 0x74]
lea eax, [edi + 0x64]
mov ecx, 2
call fcn.10056b10
cmp eax, 1
jne 0x10036cc2
mov ecx, esi
push ecx
call fcn.10021900
mov dword [edi + 0x78], 0
fld qword [0x100a98b0]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x10036e49
cmp dword [edi + 0x78], 0
jne 0x10036e49
mov edx, esi
push edx
call fcn.10021900
fld qword [esp + 0x84]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x7c]
fstp qword [esp]
call fcn.1006ddc0
fstp dword [esp + 0x2c]
add esp, 4
fld dword [0x100a982c]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.100218b0
add esp, 0xc
test eax, eax
jne 0x10036d3c
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.10021920
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
call fcn.1007ee00
test eax, eax
jne 0x10036dc9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.1007f0a0
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10036dbc
push 0x63
lea edx, [esp + 0x119]
push 0
push edx
mov byte [esp + 0x120], 0
call fcn.10082ee0
add esp, 0xc
push esi
lea eax, [esp + 0x118]
push 0x100a6340
push eax
call fcn.100817e4
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x98]
add esp, 0xc
lea eax, [esp + 0x114]
push eax
call edx
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10036dd2
call fcn.1007ee00
test eax, eax
jne 0x10036de8
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 5
mov dword [esp + 0x1c], eax
jl 0x10036d48
jmp 0x10036e49
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
push eax
call fcn.10021900
push ecx
mov eax, ebx
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.10001820
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0x14]
add ecx, 0xc
call fcn.10058550
push ecx
mov eax, ebx
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.10001820
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
call fcn.10058a80
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push 0x1b
call eax
mov byte [esp + 0x1c0], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10036e6a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x10c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10036e98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x10036eab
xor eax, eax
jmp 0x10036eb3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp dword [edi + 0x24], eax
jae 0x10036fc3
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x100a2f24
call fcn.10003700
mov dword [esp + 0x1c0], 4
mov ecx, dword [ebx + 4]
test ecx, ecx
mov esi, dword [edi + 0x24]
je 0x10036eec
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x10036ef1
call fcn.10080d40
mov ecx, dword [ebx + 4]
shl esi, 4
add esi, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x1c], esi
mov esi, dword [edi + 0x24]
je 0x10036f11
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x10036f16
call fcn.10080d40
mov ecx, dword [ebx + 4]
shl esi, 4
add esi, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x40], esi
mov esi, dword [edi + 0x24]
je 0x10036f36
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x10036f3b
call fcn.10080d40
mov edx, dword [esp + 0x1c]
fld dword [edx + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 0x24]
sub esp, 0x18
fstp qword [esp + 0x10]
shl esi, 4
fld dword [eax]
lea edi, [esp + 0x2c]
fstp qword [esp + 8]
fld dword [esi + ecx + 4]
fstp qword [esp]
push edx
push str.gobattle_id_d_x_f_y_f_z_f
call fcn.10015e10
mov esi, dword [esp + 0x34]
mov ecx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
add esp, 0x20
or eax, edx
jge 0x10036f98
mov eax, edi
call fcn.10002d80
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov dword [esp + 0x1c0], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10036fbf
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x10036fce
xor eax, eax
jmp 0x10036fd6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
add eax, 0xfffffffc
cmp dword [edi + 0x24], eax
jb 0x10037031
test ecx, ecx
je 0x10037031
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp eax, 4
jb 0x10037031
call fcn.1007f280
test eax, eax
je 0x10037031
call fcn.1007f280
test eax, eax
je 0x10037019
call fcn.10036200
test eax, eax
je 0x10037019
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10021900
call fcn.10035760
call fcn.1007f280
test eax, eax
je 0x10037031
mov edx, dword [esp + 0x18]
push edx
call fcn.10021900
call fcn.1005af60
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x1003703c
xor eax, eax
jmp 0x10037044
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
mov esi, dword [edi + 0x24]
cmp esi, eax
jae 0x10037384
test ecx, ecx
je 0x1003705f
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x10037064
call fcn.10080d40
shl esi, 4
add esi, dword [ebx + 4]
mov ecx, 3
mov eax, esi
mov esi, dword [esp + 0x18]
mov edx, 0x221
call fcn.10056b10
cmp eax, 1
jne 0x10037321
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x10037093
xor eax, eax
jmp 0x1003709b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
mov ecx, dword [edi + 0x24]
add eax, 0xffffffff
cmp ecx, eax
jb 0x100370c8
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x100370b8
xor eax, eax
mov eax, 0xffffffff
mov dword [edi + 0x24], eax
jmp 0x100370ce
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
add eax, 0xffffffff
mov dword [edi + 0x24], eax
jmp 0x100370ce
add ecx, 1
mov dword [edi + 0x24], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x100370d9
xor eax, eax
jmp 0x100370e1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
mov ecx, dword [edi + 0x24]
add eax, 0xfffffffc
cmp ecx, eax
jae 0x10037384
mov edi, ecx
mov esi, ebx
call fcn.10022550
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x34]
push ecx
call fcn.100377e0
test eax, eax
je 0x1003737c
mov eax, esi
call fcn.10004a20
cmp eax, 4
jb 0x1003737c
call fcn.1007f280
test eax, eax
jne 0x100371bd
call fcn.1007f2f0
test al, al
jne 0x100371bd
call fcn.1007f360
test eax, eax
je 0x100371bd
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 4], 0
je 0x100371c1
call fcn.10036200
test eax, eax
je 0x10037186
push ebx
call fcn.10021900
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10035740
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
call fcn.1007f280
test eax, eax
jne 0x100371c1
call fcn.100361c0
test eax, eax
je 0x100371c1
push ebx
call fcn.10021900
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10022530
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
jmp 0x100371c1
mov ebx, dword [esp + 0x18]
call fcn.1007f200
test eax, eax
je 0x1003726a
mov eax, dword [esp + 0x24]
call fcn.10037480
test al, al
je 0x1003726a
fld dword [ebx + 0x34]
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x24]
fstp dword [esp + 0x30]
fld dword [ebx + 0x30]
fstp dword [esp + 0x2c]
fld dword [ebx + 0x38]
fstp dword [esp + 0x34]
fld dword [ebx + 0x3c]
fstp dword [esp + 0x38]
call fcn.10022550
lea ecx, [esp + 0x2c]
call fcn.1006de60
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.1005af10
call fcn.10036200
test eax, eax
je 0x1003724b
push ebx
call fcn.10021900
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
call fcn.10035760
push 0xbb8
call esi
jmp 0x10037251
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push 0x58
call eax
push 0x1f4
call esi
call fcn.1007f2f0
test al, al
jne 0x10037280
mov eax, dword [esp + 0x24]
call fcn.10037480
test al, al
je 0x100372c6
fld dword [ebx + 0x34]
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x24]
fstp dword [esp + 0x30]
fld dword [ebx + 0x30]
mov esi, dword [esp + 0x28]
fstp dword [esp + 0x2c]
fld dword [ebx + 0x38]
fstp dword [esp + 0x34]
fld dword [ebx + 0x3c]
fstp dword [esp + 0x38]
call fcn.10022550
lea ecx, [esp + 0x2c]
call fcn.1006de60
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.1005af10
call fcn.1007f200
test eax, eax
je 0x1003737c
mov eax, dword [esp + 0x18]
fld dword [eax + 0x34]
mov edx, dword [esp + 0x24]
mov edi, dword [edx + 0x24]
fstp dword [esp + 0x30]
fld dword [eax + 0x30]
mov esi, dword [esp + 0x28]
fstp dword [esp + 0x2c]
fld dword [eax + 0x38]
fstp dword [esp + 0x34]
fld dword [eax + 0x3c]
fstp dword [esp + 0x38]
call fcn.10022550
lea ecx, [esp + 0x2c]
call fcn.1006de60
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.1005af10
mov ebx, esi
jmp 0x10037380
cmp eax, 2
jne 0x1003732c
add dword [edi + 0x24], 1
jmp 0x10037384
call fcn.1007f200
test eax, eax
je 0x10037384
mov edi, dword [edi + 0x24]
mov eax, esi
fld dword [eax + 0x34]
mov esi, ebx
fstp dword [esp + 0x30]
fld dword [eax + 0x30]
fstp dword [esp + 0x2c]
fld dword [eax + 0x38]
fstp dword [esp + 0x34]
fld dword [eax + 0x3c]
fstp dword [esp + 0x38]
call fcn.10022550
lea ecx, [esp + 0x2c]
call fcn.1006de60
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
call fcn.1007f140
add esp, 4
jmp 0x10037380
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1003738f
xor ebx, ebx
jmp 0x10037397
mov ebx, dword [ebx + 8]
sub ebx, eax
sar ebx, 4
add ebx, 0xffffffff
cmp dword [edi + 0x24], ebx
jne 0x100373df
call fcn.1007fb40
test eax, eax
jne 0x100373d6
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x28], 1
jne 0x100373d6
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x28], 3
je 0x100373e8
call fcn.1007fb40
test eax, eax
je 0x1003744a
mov eax, dword [esp + 0x28]
call fcn.10013840
mov esi, dword [esp + 0x18]
push 0x100a2f24
xor ebx, ebx
lea eax, [esi + 0x18]
call fcn.10002ce0
mov ecx, dword [0x100bb2cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [esi + 0xec], ebx
mov eax, dword [edi + 0x14]
lea ebx, [esp + 0x1c]
add eax, 0x597d0
mov dword [esp + 0x1c], 7
call fcn.1001d970
mov dword [eax], 0
mov ecx, dword [edi + 0x14]
mov dword [ecx + 0x5980c], 2
mov dword [esi + 4], 0
mov eax, 1
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.10080c07
mov esp, ebp
pop ebp
ret 4