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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov ebx, dword [ebp + 0xc50]
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x48]
test edi, edi
mov dword [esp + 0x18], ebx
je 0x5578e1
push ebp
call fcn.0054a430
add esp, 4
test esi, esi
je 0x556f6b
cmp dword [ebp + 0x1c], 1
jbe 0x556f12
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [ebp + 0x1c]
jne 0x556f43
mov edx, dword [ebx + 0x2c]
mov ecx, dword [edx + 0x4a0]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x2c]
add ecx, 0x60
cmp eax, ecx
jne 0x556f43
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x48]
or eax, 0x80000000
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
push 0
push 0
push eax
push ecx
push esi
call fcn.005536a0
add esp, 0x14
test eax, eax
je 0x556f6b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
or eax, edx
je 0x55721d
mov eax, dword [ebp + 0x48]
mov dword [edi + 0xd0], eax
mov ecx, dword [ebp + 0x4c]
mov dword [edi + 0xd4], ecx
mov edx, eax
mov eax, dword [ebp + 0x1c]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
or edi, 0xc0000000
cmp ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
jae 0x5578e1
mov eax, dword [ebp]
mov edi, ecx
imul edi, edi, 0x190
mov edx, dword [edi + eax]
mov ebx, dword [edx + 0x480]
mov edx, dword [edx + 0x484]
add edi, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
dec eax
cmp ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], 0
jne 0x556fea
or edx, 0xc0000000
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
or dword [esp + 0x28], ebx
or dword [esp + 0x2c], edx
cmp dword [edi + 0x108], 4
jne 0x557069
mov eax, dword [edi + 0x10]
test eax, eax
je 0x557069
mov esi, dword [edi + 0x124]
cmp esi, dword [eax + 0x1c]
jne 0x557065
mov esi, dword [edi + 0x120]
cmp esi, dword [eax + 0x20]
jae 0x557065
mov esi, 1
mov dword [edi + 0x108], 6
mov dword [edi + 0xf0], esi
mov dword [edi + 0x124], 0xffffffff
mov dword [edi + 0x11c], 0
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jge 0x55705a
fadd qword [0x73b508]
lea ecx, [ecx + ecx*2 + 0xc9]
fstp qword [ebp + ecx*8]
mov esi, dword [esp + 0x4c]
xor ebp, ebp
test esi, esi
je 0x5570d2
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push ebx
push edx
push eax
push esi
call fcn.005536a0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x5570d2
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x5570c6
cmp dword [edi + 0x108], 6
je 0x5570a5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [edi + 0x10], ebp
jmp 0x5570c6
push 0x50
call fcn.0040105a
add esp, 4
test eax, eax
je 0x55756d
push 1
push 0
push 1
mov ecx, eax
call fcn.00408747
mov ebp, eax
test ebp, ebp
je 0x55756d
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x14]
push 0xe8
push eax
push edx
call fcn.005d90a0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [edi + 8], esi
je 0x55721d
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, eax
je 0x557171
push eax
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.0054a640
add esp, 0xc
test eax, eax
je 0x55721d
mov dword [esi + 4], eax
mov ecx, dword [edi]
mov dword [edi + 0xc], eax
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [edx + 0xc0], ebp
mov dl, byte [ecx + 0x48b]
test dl, dl
je 0x557179
mov ecx, dword [esp + 0x34]
push ecx
push ebx
push ecx
push ebx
push eax
call fcn.005536a0
mov ebx, eax
add esp, 0x14
cmp ebx, ebp
je 0x557179
mov edx, dword [edi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1ac]
test eax, eax
jne 0x557179
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov dword [edx + 0xc0], ebx
jmp 0x557179
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
xor ebp, ebp
mov eax, dword [edi]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebp
je 0x5571d8
mov edx, dword [edi + 0xc0]
or edx, dword [edi + 0xc4]
jne 0x5571cf
mov eax, dword [edi + 0x108]
cmp eax, 3
je 0x5571cf
cmp eax, 9
je 0x5571cf
cmp eax, 4
jne 0x5571b3
mov eax, dword [edi + 0x124]
cmp eax, dword [ecx + 0x1c]
jne 0x5571cf
mov dword [esi], ecx
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], ebp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xcc], ebp
jmp 0x5571d5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [edi + 0x10], ebp
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x20]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jne 0x55722a
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x4c8]
mov eax, dword [edx + 0x124]
inc eax
je 0x55722a
mov ecx, dword [edi + 0xb0]
or ecx, dword [edi + 0xb4]
je 0x55756d
mov edx, dword [edi]
mov eax, dword [edx + 0x4d4]
test eax, eax
je 0x55756d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret
cmp dword [edi + 0x108], 6
jne 0x55756d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x55756d
mov ebx, dword [edi + 0xb0]
mov ebp, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
mov ecx, ebx
or ecx, ebp
je 0x557267
mov edx, dword [edi]
mov ecx, dword [edx + 0x4d4]
test ecx, ecx
jne 0x55721d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x5572ce
push eax
lea ecx, [edi + 0xc8]
call fcn.0040ad44
test al, al
jne 0x5572ce
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x5572d2
mov ebx, dword [esp + 0x44]
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx]
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.0040265d
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x5572b3
mov cl, byte [eax + 0x36]
test cl, cl
jne 0x5572b3
mov byte [eax + 0x36], 1
mov eax, dword [ebx + 0xc78]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x5573f3
or eax, 0xffffffff
jmp 0x5573ff
mov eax, dword [esp + 0x10]
or ebx, ebp
je 0x557320
cmp eax, dword [esp + 0x20]
jne 0x557320
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx + 0xd00]
mov edx, dword [ecx + 0x25c]
fild dword [ecx + 0x25c]
test edx, edx
jge 0x5572fc
fadd qword [0x73b508]
lea eax, [eax + eax*2 + 0xc9]
fcomp qword [ebx + eax*8]
fnstsw ax
test ah, 5
jp 0x557320
mov eax, dword [ebx + 0xc78]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x55728b
mov ecx, dword [edi + 0xc0]
mov dword [esi + 0xc8], ecx
mov edx, dword [edi + 0xc4]
xor eax, eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov ebp, dword [esp + 0x44]
lea eax, [edi + 0xb8]
lea ebx, [esi + 0xc0]
push eax
mov ecx, ebx
call fcn.0040ad44
test al, al
je 0x55737c
lea eax, [edi + 0xb8]
push eax
lea ecx, [esi + 0xc8]
call fcn.0040ad44
test al, al
jne 0x5574fb
mov eax, dword [ebx]
mov dword [edi + 0xc8], eax
mov ecx, dword [ebx + 4]
mov dword [edi + 0xcc], ecx
mov edx, dword [esi + 0xc8]
mov ecx, dword [edi + 0xcc]
mov ebx, eax
or ebx, edx
mov dword [edi + 0xc8], ebx
mov eax, dword [esi + 0xcc]
or ecx, eax
mov dword [edi + 0xcc], ecx
mov ecx, dword [esi + 0xc8]
or ecx, dword [esi + 0xcc]
je 0x5574ca
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc0]
or edx, dword [eax + 0xc4]
je 0x5573e9
mov eax, dword [eax]
test eax, eax
je 0x5574ca
cmp dword [eax + 0xc], 0x64
jb 0x5574ca
mov eax, 2
jmp 0x5574cf
mov eax, dword [ebx + 0xd00]
mov eax, dword [eax + 0x25c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push 0
push eax
mov eax, dword [esp + 0x20]
not ebx
and ebx, edx
mov edx, dword [edi + 0xc8]
push ebx
not ebp
and ebp, ecx
mov ecx, dword [edi + 0xcc]
push ebp
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040b2d0
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
jge 0x557498
mov edx, dword [edi + 0x14]
cmp dword [edx], 0
je 0x55721d
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc78]
and eax, 0x20
xor ecx, ecx
or eax, ecx
je 0x557465
or eax, 0xffffffff
jmp 0x557471
mov eax, dword [edx + 0xd00]
mov eax, dword [eax + 0x25c]
mov ecx, dword [edi + 0xcc]
mov edx, dword [edi + 0xc8]
push 0
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebp
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040b2d0
test eax, eax
jl 0x55721d
mov eax, dword [esi]
test eax, eax
je 0x557346
mov edx, dword [eax + 0xc]
fild dword [eax + 0xc]
test edx, edx
jge 0x5574b2
fadd qword [0x73b508]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
lea eax, [eax + eax*2 + 0xc9]
fstp qword [ebp + eax*8]
jmp 0x55734a
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xf0], eax
mov eax, dword [esp + 0x30]
mov edx, eax
mov ebx, ecx
not edx
and edx, dword [esp + 0x28]
not ebx
and ebx, dword [esp + 0x2c]
mov dword [esi + 0xd8], edx
mov dword [esi + 0xdc], ebx
jmp 0x557503
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
cmp edx, dword [ebp + 0x20]
je 0x55756d
cmp dword [edi + 0xf0], 2
je 0x55756d
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x55756d
mov ebx, dword [ebp + 0x48]
push ecx
push eax
or ebx, eax
mov eax, dword [ebp + 0x4c]
or eax, ecx
push eax
push ebx
push edx
call fcn.005536a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x55756d
mov ecx, dword [esp + 0x18]
push 0xe8
push esi
add ecx, 0xc
call fcn.00408ed6
mov dword [edi + 0x17c], eax
mov dword [eax + 4], ebx
mov ecx, dword [edi + 0x17c]
mov edx, dword [ebp + 0x48]
mov dword [ecx + 0xd8], edx
mov eax, dword [ebp + 0x4c]
mov dword [ecx + 0xdc], eax
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 0x1c]
imul eax, eax, 0x190
imul edx, edx, 0x190
add eax, ecx
add edx, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jae 0x557693
jmp 0x5575a0
mov eax, dword [esp + 0x1c]
jmp 0x5575a0
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
test eax, eax
mov esi, dword [esp + 0x44]
je 0x557671
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x4c]
mov ebx, dword [ecx + 0x1c]
mov ecx, dword [esi + 0x48]
push 0
push 0
push edx
push ecx
push eax
call fcn.005536a0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x557671
push 0x80
call fcn.0040105a
mov esi, eax
add esp, 4
test esi, esi
je 0x55721d
mov ecx, esi
call fcn.00401366
mov eax, 1
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi], vtable.Item_func.0
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], 0
mov dword [eax], ebp
mov dl, byte [ebp + 0x35]
lea eax, [ebx + 0x24]
mov byte [esi + 0x35], dl
mov dword [esi + 0x28], 0x15
mov dword [esi], vtable.Item_func_trig_cond.0
mov dword [esi + 0x78], eax
mov byte [esi + 0x36], 1
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x55763d
mov eax, esi
jmp 0x55765e
push 0xa8
call fcn.0040105a
add esp, 4
test eax, eax
je 0x55765c
mov ecx, dword [ebx + 0xc]
push esi
push ecx
mov ecx, eax
call fcn.00404ad4
jmp 0x55765e
xor eax, eax
test eax, eax
mov dword [ebx + 0xc], eax
je 0x55721d
mov esi, dword [esp + 0x44]
mov byte [eax + 0x36], 1
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x1c]
imul edx, edx, 0x190
mov ebx, dword [esi]
add eax, 0x190
add edx, ebx
cmp eax, edx
mov dword [esp + 0x1c], eax
jb 0x557597
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [esp + 0x44]
mov edx, edi
mov dword [esp + 0x20], edx
je 0x5578c4
lea esp, [esp]
cmp dword [ecx + 0x28], edx
jne 0x5578c4
mov ebx, dword [eax + 0x20]
mov esi, dword [ecx + 0x14]
imul ebx, ebx, 0x190
mov ebp, dword [eax]
mov esi, dword [esi]
mov edi, dword [eax + 0x4c]
add ebx, ebp
or edi, 0xc0000000
cmp ebx, edx
mov dword [esp + 0x24], esi
mov esi, dword [eax + 0x48]
ja 0x5578b5
jmp 0x5576f0
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x480]
mov ecx, dword [ecx + 0x484]
mov edx, dword [esp + 0x24]
push ecx
push eax
or edi, ecx
or esi, eax
push edi
push esi
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.005536a0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x557899
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov ecx, eax
jb 0x557731
mov ecx, ebx
mov edi, dword [ecx + 0x1c]
cmp edi, eax
mov dword [esp + 0x1c], ecx
je 0x5577bb
push eax
mov eax, dword [edi + 0x2c]
push ebp
push eax
call fcn.0054a640
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x55721d
push 0x80
call fcn.0040105a
mov esi, eax
add esp, 4
test esi, esi
je 0x55782b
mov ecx, esi
call fcn.00401366
mov eax, 1
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi], vtable.Item_func.0
mov dword [esi + 0x48], 0
lea eax, [esi + 0x50]
mov dword [esi + 0x4c], eax
mov dword [eax], ebp
mov cl, byte [ebp + 0x35]
mov byte [esi + 0x35], cl
add edi, 0x20
mov dword [esi + 0x28], 0x15
mov dword [esi], vtable.Item_func_trig_cond.0
mov dword [esi + 0x78], edi
mov edx, dword [esi]
mov ecx, esi
mov ebp, esi
mov byte [esi + 0x36], 1
call dword [edx + 0x8c]
test ebp, ebp
je 0x55721d
push 0x80
call fcn.0040105a
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x55782f
mov ecx, esi
call fcn.00401366
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x50]
mov dword [esi], vtable.Item_func.0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
mov dword [eax], ebp
mov al, byte [ebp + 0x35]
add ecx, 0x24
mov byte [esi + 0x35], al
mov dword [esi + 0x28], 0x15
mov dword [esi], vtable.Item_func_trig_cond.0
mov dword [esi + 0x78], ecx
mov ebp, esi
mov byte [esi + 0x36], 1
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0xc], edi
jne 0x557833
mov esi, ebp
jmp 0x55787e
xor ebp, ebp
jmp 0x5577bb
xor ebp, ebp
jmp 0x55781e
push 0xa8
call fcn.0040105a
mov esi, eax
add esp, 4
cmp esi, edi
je 0x55787c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
push ebp
push ecx
mov ecx, esi
call fcn.00409714
mov dword [esi], vtable.Item_cond_and.0
lea eax, [esi + 0x98]
mov dword [eax + 8], edi
mov dword [eax], 0x837188
mov dword [eax + 4], eax
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
jmp 0x55787e
xor esi, esi
cmp esi, edi
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xc], esi
je 0x55721d
mov edi, dword [esp + 0x3c]
mov byte [esi + 0x36], 1
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add ebx, 0x190
cmp ebx, eax
jbe 0x5576f0
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
mov dword [esp + 0x14], ecx
jne 0x5576b0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jae 0x5578e1
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
jmp 0x556fa1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret