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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x5527f0]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
cmp dword [ebx + 0x1808], 3
je 0x47d8d0
mov edx, 0xc000042a
call fcn.004f437c
test eax, eax
js 0x47e256
push 0xc00000e5
call dword [fcn.00440b24]
mov edi, dword [ebx + 0x18b8]
push 8
push 0x88
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5552f8]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
jne 0x47d93f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x1d4], 0x41ee58
mov dword [esp + 0x1d8], 0x41fa10
mov dword [esp + 0x1dc], 0x919
and dword [eax], esi
mov esi, 0xc0000017
push esi
mov dword [esp + 0x1e4], 0x41fa3c
call fcn.004f7c89
mov eax, esi
jmp 0x47e256
mov ecx, esi
call fcn.00499337
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov dword [eax], esi
call fcn.00478633
mov ecx, ebx
mov al, byte [eax + 0x3c]
mov byte [esp + 0x1b], al
call fcn.00478633
mov ecx, dword [0x40a114]
lea edi, [esp + 0x1d4]
push 8
pop esi
mov edx, dword [eax + 0x38]
xor eax, eax
stosd dword es:[edi], eax
push 4
mov dword [esp + 0x100], esi
mov dword [esp + 0x154], esi
stosd dword es:[edi], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], 0xe
stosd dword es:[edi], eax
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xcc], 0x418528
mov dword [esp + 0xd0], ecx
stosw word es:[edi], ax
mov eax, dword [0x40a118]
pop edi
push 7
mov dword [esp + 0x128], edi
mov dword [esp + 0x13c], edi
pop edi
push 0xb
pop esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0x13
mov dword [esp + 0xd8], 0x14
mov dword [esp + 0xdc], 0x41fa7c
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], 0xc
mov dword [esp + 0xec], 0xd
mov dword [esp + 0xf0], 0x41a250
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], 9
mov dword [esp + 0x104], 0x41f078
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], 5
mov dword [esp + 0x114], 6
mov dword [esp + 0x118], 0x41fa90
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
mov dword [esp + 0x128], 5
mov dword [esp + 0x12c], 0x41fa98
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], eax
mov dword [esp + 0x13c], 5
mov dword [esp + 0x140], 0x4183a0
mov dword [esp + 0x144], ecx
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], edi
mov dword [esp + 0x154], 0x41faa0
mov dword [esp + 0x158], ecx
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], 0x1f
mov dword [esp + 0x164], 0x20
mov dword [esp + 0x168], 0x41faa8
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], 0x17
mov dword [esp + 0x178], 0x18
mov dword [esp + 0x17c], 0x41fac8
mov dword [esp + 0x180], ecx
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], esi
push 8
mov dword [esp + 0x198], ecx
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a4], esi
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], eax
pop esi
mov dword [esp + 0x1bc], ecx
mov ecx, dword [ebx + 0x18c4]
mov dword [esp + 0x1c0], eax
mov eax, dword [ebx + 0x18c8]
mov dword [esp + 0x18c], 0xc
mov dword [esp + 0x190], 0x418450
mov dword [esp + 0x19c], 0xa
mov dword [esp + 0x1a4], 0x41f698
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], 9
mov dword [esp + 0x1b8], 0x41fae0
mov dword [esp + 0x1c4], edi
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x1cc], 0x41faec
cmp ecx, eax
je 0x47dc17
add eax, 0xfffffff8
cmp eax, ecx
jne 0x47dc0a
mov dword [ebx + 0x18c8], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x20], eax
je 0x47dfe5
lea ecx, [ebx + 0x904]
push eax
call fcn.00498b56
mov edx, eax
mov dword [esp + 0x24], edx
cmp byte [edx + 0x48], 0
jne 0x47dfcd
cmp byte [edx + 0x49], 0
jne 0x47dfcd
mov ecx, dword [edx + 0x14]
lea esi, [esp + 0x38]
mov eax, dword [edx + 0x10]
lea edi, [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 4]
and dword [esp + 0x1c], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [edx]
lea edx, [esp + 0x64]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xbc]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
push eax
push 0xe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3d99
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x1c]
mov ecx, ebx
cmp eax, 0xe
jae 0x47dfad
cmp byte [esp + eax + 0x1d4], 0
jne 0x47dfdb
mov esi, dword [esp + 0x24]
sub esp, 0x10
add esi, 0x20
mov byte [esp + eax + 0x1e4], 1
mov edi, esp
lea eax, [esp + 0x80]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3fe7
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x13], 0
cmp eax, 0xd
ja case.default.0x47dd09
jmp dword [eax*4 + 0x47e26d]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
push dword [esi]
call fcn.0047975f
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x74], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
add eax, 0x70
push eax
call fcn.0047893f
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x75], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
inc eax
push eax
call fcn.004796c4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x76], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 4
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x77], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x10
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x78], 1
jmp 0x47df9a
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x70]
lea edi, [esp + 0x58]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x58]
mov eax, dword [eax]
add eax, 0x20
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00498f6c
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov byte [eax + 0x79], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov ecx, dword [ebx + 0x18b8]
lea edx, [esp + 0x70]
push eax
mov eax, dword [esi]
add eax, 0x28
push eax
call fcn.0046fcb7
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7a], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
add eax, 0x34
push eax
call fcn.00478860
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7b], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
add eax, 0x71
push eax
call fcn.004f3f6d
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7c], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x38
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7d], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x44
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7e], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x50
push eax
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x7f], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
add eax, 0x72
push eax
call fcn.004f3f6d
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x80], 1
jmp 0x47df9a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esi]
add eax, 0x73
push eax
call fcn.004f3f6d
test eax, eax
js 0x47e256
mov eax, dword [esi]
mov byte [eax + 0x81], 1
cmp byte [esp + 0x13], 0
jne 0x47dfcd
mov edx, 0xc00000b9
mov ecx, ebx
jmp 0x47d8b8
test byte [ebx + 0x18c0], 2
je 0x47dfdb
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004f4160
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x48]
jmp 0x47dc1b
mov edx, 0xc00000a4
jmp 0x47d8b8
mov ecx, ebx
call fcn.004f43a1
test eax, eax
js 0x47e256
mov esi, dword [0x40a194]
lea edi, [esp + 0x70]
mov edx, dword [0x40a198]
xor eax, eax
mov ecx, dword [0x40a134]
stosd dword es:[edi], eax
push 0x10
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edx
stosd dword es:[edi], eax
mov dword [esp + 0x8c], 0x11
mov dword [esp + 0x90], 0x41831c
mov dword [esp + 0x98], ecx
stosd dword es:[edi], eax
mov eax, dword [0x40a130]
mov dword [esp + 0x94], eax
mov al, byte [esp + 0x1f]
mov dword [esp + 0x9c], 4
mov dword [esp + 0xa0], 5
mov dword [esp + 0xa4], 0x4183a0
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xb8], 0x41faf4
pop edi
mov dword [esp + 0x84], edi
mov dword [esp + 0xb0], edi
test al, al
jne 0x47e1e5
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
lea ecx, [eax + 0x60]
add eax, 0x68
cmp dword [ebx + 0x1808], 3
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jne 0x47e1e1
mov ecx, ebx
call fcn.00478633
mov edx, eax
and dword [esp + 0x20], 0
lea esi, [esp + 0x28]
lea edi, [esp + 0x4c]
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov eax, dword [edx]
lea edx, [esp + 0x58]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x80]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
push eax
push 3
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3d99
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x20]
cmp eax, 3
jae 0x47e141
inc dword [esp + eax*4 + 0x70]
mov ecx, ebx
sub eax, 0
je 0x47e1b4
sub eax, 1
je 0x47e18d
sub eax, 1
je 0x47e166
test byte [ebx + 0x18c0], 2
je 0x47e215
call fcn.004f4491
jmp 0x47e1c9
mov esi, dword [esp + 0x1c]
mov edx, esi
call fcn.0047d584
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
add esi, 0x18
mov dword [esp + 0x1c], esi
mov eax, dword [eax]
inc dword [eax + 0x6c]
jmp 0x47e1d1
mov esi, dword [esp + 0x24]
mov edx, esi
call fcn.0047d273
test eax, eax
js 0x47e256
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
add esi, 0xc
mov dword [esp + 0x24], esi
mov eax, dword [eax]
inc dword [eax + 0x64]
jmp 0x47e1d1
cmp dword [esp + 0x70], 1
jne 0x47e21f
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add edx, 0x5c
call fcn.00479d99
test eax, eax
js 0x47e256
cmp dword [ebx + 0x1808], 3
je 0x47e0c9
push 0x10
pop edi
mov al, byte [esp + 0x1b]
cmp dword [esp + 0x70], 0
jne 0x47e229
push 0xc0000016
mov edx, ebx
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], 0x11
mov dword [esp + 0x34], 0x41831c
call fcn.004f420e
jmp 0x47d8bd
mov edx, 0xc0000024
jmp 0x47d8b8
mov edx, 0xc00000bd
jmp 0x47d8b8
test al, al
jne 0x47e254
cmp dword [ebx + 0x1808], 4
mov ecx, ebx
je 0x47e24b
mov edx, 0xc000042a
call fcn.004f437c
test eax, eax
js 0x47e256
jmp 0x47d8c5
call fcn.004f43a1
test eax, eax
js 0x47e256
xor eax, eax
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b1d0
mov esp, ebp
pop ebp
ret