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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55669e
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x5b1700]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x64], 0
jne 0x47b4a1
mov eax, dword [ebx + 0x60]
push 0
push 0x32
push eax
mov eax, dword [ebx + 4]
push eax
call dword [0x567684]
mov byte [ebx + 0x64], 1
mov edx, dword [ebx + 4]
lea edi, [ebx + 4]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x7c], edi
call dword [0x567648]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
lea eax, [esp + 0x40]
lea esi, [esp + 0xb4]
call fcn.004111f0
mov dword [esp + 0xe0], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x70]
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], eax
call dword [0x567690]
mov esi, eax
push esi
call dword [0x567694]
test eax, eax
je 0x47b542
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x18]
push eax
push ecx
push 0x135
push esi
call dword [0x56762c]
mov esi, eax
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x47b53f
cmp eax, esi
je 0x47b53f
push eax
call dword [0x567138]
mov dword [ebx + 0x74], esi
mov eax, dword [ebx + 0x70]
mov esi, dword [esp + 0xb4]
push eax
push esi
call dword [0x567100]
cmp eax, 0xffffffff
mov dword [esp + 0x50], eax
je 0x47b581
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 2
push 0
push 0
push esi
call dword [0x5670fc]
mov ecx, dword [esp + 0x50]
push ecx
push esi
call dword [0x567100]
mov edx, dword [edi]
push 0
push 0
push 0x129
push edx
call dword [0x56762c]
mov edx, dword [edi]
xor ecx, ecx
test eax, eax
setle cl
push 0xfffffffffffffff0
push edx
sub ecx, 1
and ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
call dword [0x567670]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
mov dl, al
shr ecx, 4
shr eax, 2
and dl, 1
and cl, 1
and al, 1
cmp byte [ebx + 0x50], 0
mov byte [esp + 0x17], dl
mov byte [esp + 0x33], cl
mov byte [esp + 0x32], al
mov dword [esp + 0x18], 0
je 0x47b820
cmp dword [ebx + 0x58], 0
je 0x47b820
mov edi, dword [ebx + 0x58]
test edi, edi
je 0x47b820
test al, al
mov dword [esp + 0x18], edi
mov edi, dword [ebx + 0x78]
mov dword [esp + 0x10], edi
je 0x47b61d
mov dword [ebx + 0x78], 4
jmp 0x47b638
test dl, dl
je 0x47b62a
mov dword [ebx + 0x78], 3
jmp 0x47b638
xor eax, eax
cmp byte [ebx + 0x5c], al
setne al
add eax, 1
mov dword [ebx + 0x78], eax
mov edi, dword [ebx + 0x78]
cmp edi, 3
setne dl
cmp edi, 2
setne al
and dl, al
and dl, cl
and dl, 1
je 0x47b657
mov dword [ebx + 0x78], 5
cmp dword [esp + 0x10], 0
jge 0x47b665
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x10], ecx
cmp byte [ebx + 0x5d], 0
je 0x47b7c5
mov edx, dword [esp + 0x10]
cmp dword [ebx + 0x78], edx
je 0x47b7c5
push 4
call fcn.004f6206
add esp, 4
test eax, eax
je 0x47b698
mov esi, eax
mov dword [eax], 0
mov dword [esp + 0x34], esi
jmp 0x47b6a4
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
push 0
push 0x20
push 1
push eax
push ecx
call dword [0x5670e0]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov byte [esp + 0xe0], 1
mov eax, dword [eax + 0x18]
push eax
call dword [0x567150]
mov edi, eax
mov eax, dword [esi]
push eax
push edi
mov dword [esp + 0x34], edi
call dword [0x567140]
mov eax, dword [ebx + 0x70]
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x30]
call fcn.00432710
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x44]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x44]
push ecx
push esi
push 1
push edi
mov edi, dword [esp + 0x2c]
push edi
call eax
push esi
push edi
lea edx, [esp + 0x34]
push edx
push ebx
lea edi, [esp + 0x64]
lea ecx, [esp + 0x50]
call fcn.0047c230
mov eax, dword [esp + 0x34]
lea edi, [ebx + 0x68]
call fcn.0047c740
mov eax, dword [ebx + 0x78]
add eax, 0xffffffff
cmp eax, 4
ja case.0x47b742.3
jmp dword [eax*4 + 0x47be24]
xor eax, eax
cmp dword [esp + 0x10], 3
sete al
lea eax, [eax + eax + 2]
mov dword [ebx + 0x7c], eax
jmp 0x47b798
mov eax, dword [esp + 0x10]
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x14
mov dword [ebx + 0x7c], eax
jmp 0x47b798
mov dword [ebx + 0x7c], 2
jmp 0x47b798
mov eax, dword [esp + 0x10]
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xffffffee
add eax, 0x14
mov dword [ebx + 0x7c], eax
jmp 0x47b798
mov dword [ebx + 0x7c], 4
mov eax, 0xfa
cdq
idiv dword [ebx + 0x7c]
mov byte [esp + 0xe0], 0
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47b7be
push eax
call dword [0x567130]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x44]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x44]
push edx
push ecx
push 1
push esi
push edi
call eax
mov edx, dword [ebx + 0x78]
push edx
push edi
lea eax, [esp + 0xbc]
push eax
push ebx
lea edi, [esp + 0x64]
lea ecx, [esp + 0x50]
call fcn.0047c230
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x47b8aa
test al, al
mov edi, 0x10
je 0x47b830
mov edi, 0x110
jmp 0x47b839
test dl, dl
je 0x47b839
mov edi, 0x210
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
movzx eax, cl
push edi
push eax
push ebx
lea edi, [esp + 0x70]
lea eax, [esp + 0xd0]
call fcn.0047c160
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
je 0x47b8a5
push 1
push 1
lea edx, [esp + 0x24]
push edx
call dword [0x5675d8]
sub dword [esp + 0x20], 1
mov edx, dword [esp + 0x3c]
mov eax, edx
and eax, 0x300
cmp eax, 0x100
mov dword [esp + 0x10], 0
je 0x47b8d5
xor ecx, ecx
cmp eax, 0x200
sete cl
add ecx, 1
mov dword [esp + 0x10], ecx
mov eax, edx
and eax, 0xc00
cmp eax, 0x400
je 0x47b8f6
cmp eax, 0x800
je 0x47b8f1
or dword [esp + 0x10], 4
jmp 0x47b8f6
or dword [esp + 0x10], 8
test edx, 0x2000
jne 0x47b903
or dword [esp + 0x10], 0x20
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
lea eax, [esp + 0x8c]
push eax
push edx
call dword [0x567648]
cmp byte [ebx + 0x38], 0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edx
je 0x47bb45
fld qword [0x5c61c0]
fld qword [0x584f00]
fmul st(1)
call fcn.0054abc0
fmul qword [0x584ef8]
sub edi, eax
call fcn.0054abc0
fld qword [0x5c61c8]
mov ecx, dword [esp + 0x94]
fmul qword [0x584ef0]
sub ecx, eax
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x90]
mov dword [esp + 0x38], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
call fcn.0054abc0
mov edx, dword [esp + 0x3c]
mov ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov dword [esp + 0xa4], eax
sub eax, edi
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], edx
cdq
sub eax, edx
sar eax, 1
add eax, edi
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xb0], ecx
mov ecx, dword [eax]
push ecx
mov dword [esp + 0xa0], edi
call dword [0x5674e4]
test eax, eax
je 0x47ba23
push 4
call dword [0x567110]
mov edi, dword [0x567140]
push eax
push esi
call edi
push 0
push 1
push 0
call dword [0x56711c]
jmp 0x47ba4c
push 0x11
call dword [0x5675a4]
push eax
push esi
call dword [0x567140]
push 0x11
call dword [0x567614]
push eax
push 1
push 0
call dword [0x56711c]
mov edi, dword [0x567140]
mov edx, eax
push edx
push esi
mov dword [esp + 0x34], eax
call edi
push 3
lea eax, [esp + 0xa0]
push eax
push esi
call dword [0x5670c4]
push 0x10
call dword [0x567614]
push eax
push 1
push 0
call dword [0x56711c]
push 0x16
mov dword [esp + 0x3c], eax
call dword [0x567614]
push eax
push 1
push 0
call dword [0x56711c]
mov ecx, dword [esp + 0x38]
push ecx
push esi
mov dword [esp + 0x3c], eax
call edi
fld qword [0x5c61c8]
fmul qword [0x584de0]
call fcn.0054abc0
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
sub ecx, dword [ebx + 0x3c]
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x98]
sub edx, eax
push 2
lea eax, [esp + 0x68]
push eax
push esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
call dword [0x5670c8]
lea eax, [esp + 0x64]
lea esp, [esp]
lea ecx, [esp + 0x74]
cmp eax, ecx
je 0x47bb00
add dword [eax], 1
add eax, 8
jmp 0x47baf0
mov edx, dword [esp + 0x34]
push edx
push esi
call edi
push 2
lea eax, [esp + 0x68]
push eax
push esi
call dword [0x5670c8]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47bb25
push eax
call dword [0x567138]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x47bb34
push eax
call dword [0x567138]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47bb4b
push eax
call dword [0x567138]
jmp 0x47bb4b
mov edi, dword [0x567140]
test byte [esp + 0x50], 1
jne 0x47bb9d
cmp byte [esp + 0x33], 0
je 0x47bb9d
mov ecx, dword [esp + 0x78]
push ecx
push esi
call dword [0x567100]
cmp dword [esp + 0x18], 0
je 0x47bb82
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea edx, [esp + 0x5c]
push edx
call dword [0x5675c8]
lea eax, [esp + 0x54]
push eax
jmp 0x47bb96
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea ecx, [esp + 0x48]
push ecx
call dword [0x5675c8]
lea edx, [esp + 0x40]
push edx
push esi
call dword [0x5674e0]
mov ebx, dword [ebx + 0x94]
add dword [esp + 0x1c], 2
mov eax, 1
add dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
sub dword [esp + 0x28], eax
push ebx
push esi
call edi
push 1
push esi
call dword [0x567128]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5c4c54]
mov edx, dword [eax + 0xc]
mov ecx, 0x5c4c54
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x74]
lea edi, [esp + 0x18]
mov byte [esp + 0xe0], 2
call fcn.00442160
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x68], ecx
mov ecx, ebx
and ecx, 0x20
or ecx, 0x410
push ecx
mov dword [esp + 0x70], edx
lea edx, [esp + 0x68]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x94]
push edi
push esi
mov dword [esp + 0x84], eax
call dword [0x5675c0]
test bl, 4
mov ecx, dword [esp + 0x68]
je 0x47bc6b
mov eax, ecx
sub eax, dword [esp + 0x70]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x47bc68
add dword [esp + 0x20], eax
and ebx, 0xfffffffb
test bl, 8
je 0x47bc7f
sub ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x28]
and ebx, 0xfffffff7
mov dword [esp + 0x20], ecx
test bl, 0x20
je 0x47bc97
push 0x56d9d8
lea eax, [esp + 0x1c]
push eax
call fcn.0047c460
mov edi, dword [esp + 0x18]
test byte [esp + 0x50], 2
je 0x47bca4
or ebx, 0x100000
mov eax, dword [ebp + 8]
cmp byte [eax + 0x38], 0
je 0x47bcd5
mov ecx, dword [esp + 0x94]
sub ecx, dword [eax + 0x3c]
cmp dword [esp + 0x24], ecx
jl 0x47bcc1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov dword [esp + 0x78], ecx
je 0x47bd13
cmp dword [edi - 0xc], 0
je 0x47bdd0
mov ecx, dword [eax + 0x4c]
mov eax, dword [eax + 0x78]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi - 0xc]
push 0
or ebx, 0x10
push ebx
push edx
mov edx, dword [esp + 0x88]
push edi
push eax
push 1
push esi
push edx
call ecx
jmp 0x47bdd0
mov eax, dword [eax + 0x70]
push eax
push esi
call dword [0x567100]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
or ebx, 0x10
call dword [0x5675d8]
cmp byte [esp + 0x32], 0
jne 0x47bd4f
push 0x12
call dword [0x567614]
push eax
push esi
call dword [0x56715c]
push ebx
lea ecx, [esp + 0x20]
push ecx
jmp 0x47bdc6
push 0x14
call dword [0x567614]
push eax
push esi
call dword [0x56715c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x2c]
push 1
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
call dword [0x5675d8]
push ebx
lea ecx, [esp + 0x80]
push ecx
push 0xffffffffffffffff
push edi
push esi
call dword [0x5675c0]
push 0x10
call dword [0x567614]
push eax
push esi
call dword [0x56715c]
push ebx
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push edi
push esi
call dword [0x5675c0]
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [0x567128]
add edi, 0xfffffff0
mov byte [esp + 0xe0], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47be00
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea esi, [esp + 0xb4]
call fcn.00411160
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8