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

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xcc]
test eax, eax
jne 0x51fdf6
mov eax, dword [esi + 0x88]
test eax, eax
je 0x51fdf6
mov ecx, dword [esi + 0x90]
push 0
mov dword [esi + 0xcc], 1
call fcn.0044a1b0
mov ecx, dword [esi + 0x90]
push 0xff
call fcn.004b6040
mov ecx, dword [esi + 0x88]
push 0
call fcn.00485230
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x88]
add edx, 0x16e
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x10]
add edx, 0x81
push edx
call dword [eax + 0x28]
mov ecx, dword [esi + 0x8c]
push 0
call fcn.00485230
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x8c]
mov ebx, dword [esi + 0x10]
add edx, 0x16e
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x128]
mov edx, dword [edx*4 + 0x5803a0]
add edx, ebx
push edx
call dword [eax + 0x28]
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x84], 8
jge 0x51f96c
mov edx, dword [0x586bac]
mov eax, dword [edx + 0x3c]
shl eax, 4
mov edx, dword [eax + 0x5761d4]
push edx
call fcn.004b5da0
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x84], 0x65
jne 0x51f985
push 0x9e6
call fcn.004b5da0
mov eax, dword [esi + 0x88]
mov ebp, 2
push 0xf9f
mov dword [eax + 0x78], ebp
mov ecx, dword [esi + 0x88]
mov dword [ecx + 0x6c], ebp
mov edx, dword [esi + 0x88]
mov dword [edx + 0x7c], 0xa
mov ecx, dword [esi + 0x88]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0x58
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51f9fa
push 0
lea ecx, [esi + 0x78]
sub esp, 0x10
mov edi, dword [ecx]
mov edx, esp
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, eax
call fcn.004db9a0
jmp 0x51f9fc
xor eax, eax
mov ecx, dword [esi + 0x88]
push eax
call fcn.00485230
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x88]
test eax, eax
mov dword [esi + 0x1a8], edx
push 0x2c
je 0x51fa51
call fcn.004d8630
mov edi, eax
add esp, 4
test edi, edi
je 0x51fa84
mov ecx, dword [esi + 0x88]
push 0
call fcn.004db8e0
mov ecx, dword [esi + 0x88]
push eax
call fcn.004db880
push eax
push 0
mov ecx, edi
call fcn.004dcc10
jmp 0x51fa86
call fcn.004d8630
mov edi, eax
add esp, 4
test edi, edi
je 0x51fa84
mov ecx, dword [esi + 0x88]
push 0
call fcn.004db8e0
mov ecx, dword [esi + 0x88]
push eax
call fcn.004db880
push eax
push 0
mov ecx, edi
call fcn.004dccf0
jmp 0x51fa86
xor eax, eax
mov ecx, dword [esi + 0x88]
push eax
call fcn.0044a180
mov ecx, dword [esi + 0xf0]
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xfa0
call fcn.004b8aa0
mov eax, dword [esi + 0x350]
test eax, eax
je 0x51fb49
lea eax, [esi + 0x9c]
mov dword [esi + 0x33c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov ecx, dword [esi + 0x33c]
mov eax, dword [eax]
test ecx, ecx
je 0x51faf5
lea edi, [eax + 0x2c]
mov ebx, 8
mov ecx, dword [edi]
call fcn.005234d0
add edi, 4
dec ebx
jne 0x51fae6
jmp 0x51fb2e
lea ebx, [eax + 0x2c]
mov ebp, 8
mov edi, dword [ebx]
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x51fb28
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x51fb1e
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [edi + 0x88], 0
add ebx, 4
dec ebp
jne 0x51fafd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 4
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x51fad2
mov ebp, 2
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x88], eax
mov ecx, dword [0x586bac]
call fcn.00441690
test eax, eax
mov edi, 5
je 0x51fbc4
mov ecx, dword [esi + 0x8c]
push 0x30
mov dword [ecx + 0x78], ebp
mov edx, dword [esi + 0x88]
mov dword [edx + 0x7c], edi
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51fbb4
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
add ecx, 0x16e
add edx, 0x81
push ecx
push edx
push 0
mov ecx, eax
call fcn.004f2b30
mov ecx, dword [esi + 0x88]
push eax
call fcn.00485230
jmp 0x51fbe3
mov ecx, dword [esi + 0x88]
xor eax, eax
push eax
call fcn.00485230
jmp 0x51fbe3
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x88]
add edx, 0x16e
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x10]
add edx, 0x81
push edx
call dword [eax + 0x28]
mov eax, dword [esi + 0x90]
lea ebx, [esi + 0x90]
mov dword [esi + 0x8c], eax
mov ecx, dword [0x586bac]
call fcn.00441690
mov ecx, dword [esi + 0x8c]
test eax, eax
je 0x51fc73
mov dword [ecx + 0x78], ebp
mov edx, dword [esi + 0x8c]
mov dword [edx + 0x7c], edi
mov ecx, dword [esi + 0x8c]
mov eax, dword [ecx]
call dword [eax + 0x18]
push 0x30
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51fc63
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x128]
mov edi, dword [esi + 0x10]
add ecx, 0x16e
push ecx
mov ecx, dword [edx*4 + 0x5803a0]
add ecx, edi
push ecx
push 0
mov ecx, eax
call fcn.004f2b30
mov ecx, dword [esi + 0x8c]
push eax
call fcn.00485230
jmp 0x51fc94
mov ecx, dword [esi + 0x8c]
xor eax, eax
push eax
call fcn.00485230
jmp 0x51fc94
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
add eax, 0x16e
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x128]
mov eax, dword [eax*4 + 0x5803a0]
add eax, edi
push eax
call dword [edx + 0x28]
push 1
push ebx
mov ecx, esi
mov dword [ebx], 0
call fcn.005201a0
mov eax, dword [esi + 0x14]
mov ecx, dword [ebx]
mov edi, dword [esi + 0x10]
add eax, 0x16e
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x128]
mov eax, dword [eax*4 + str._M]
add eax, edi
push eax
call dword [edx + 0x28]
mov ecx, dword [0x586bac]
call fcn.00441690
test eax, eax
je 0x51fdcd
mov ecx, dword [ebx]
push 0
call fcn.004b6040
mov ecx, dword [ebx]
mov edx, dword [ecx]
call dword [edx + 0x18]
push 0x20
call fcn.004d8630
mov edi, eax
add esp, 4
test edi, edi
je 0x51fd0b
push 0
mov ecx, edi
call fcn.0048a300
mov dword [edi], vtable.PRAppearScript.0
jmp 0x51fd0d
xor edi, edi
mov ecx, dword [ebx]
push edi
call fcn.0044a1b0
mov eax, dword [ebx]
mov eax, dword [eax + 0x84]
cmp eax, 0x64
jne 0x51fd29
mov edi, 0x38
jmp 0x51fd40
cmp eax, 0x65
jne 0x51fd35
mov edi, 0x54
jmp 0x51fd40
lea edi, [eax*8]
sub edi, eax
shl edi, 1
mov ecx, dword [esi + 0x94]
mov dword [ecx + 0x6c], ebp
mov edx, dword [0x586bac]
mov eax, dword [edx + 0x3c]
shl eax, 4
mov ecx, dword [eax + 0x5761c8]
push ecx
mov ecx, dword [esi + 0x94]
call fcn.004b5da0
mov ecx, dword [esi + 0x94]
push edi
call fcn.004b5e40
push 0x24
call fcn.004d8630
add esp, 4
test eax, eax
je 0x51fd90
mov edx, dword [ebx]
mov ecx, dword [edx + 0x70]
push ecx
mov ecx, eax
call fcn.00529ce0
jmp 0x51fd92
xor eax, eax
mov ecx, dword [esi + 0x94]
push eax
call fcn.0044a180
mov edx, dword [esi + 0x94]
add edi, 0xd
push edi
mov ecx, dword [edx + 0x74]
call fcn.00529cd0
mov ecx, dword [esi + 0x94]
push 0xff
call fcn.004b6040
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x51fdd4
mov ecx, dword [ebx]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x11c]
mov eax, dword [esi + 0x34c]
inc ecx
test eax, eax
mov dword [esi + 0x11c], ecx
je 0x51fdf6
mov ecx, dword [esi + 0x98]
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc