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

Disassembly:
push 0xffffffffffffffff
push 0x4dc3b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [0x51ae08]
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov ebx, ecx
lea eax, [esp + 0x44]
call fcn.00414350
mov byte [esp + 0x64], 2
mov al, byte [esi + 0x17]
test al, al
jne 0x47f3a1
mov eax, dword [esi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x47f3c1
push 0
push 0
mov ecx, esi
call fcn.004016f0
mov edi, dword [esp + 0x70]
cmp edi, eax
je 0x47f3c5
mov ecx, esi
call fcn.0041acb0
jmp 0x47f3c5
mov edi, dword [esp + 0x70]
mov al, byte [esi + 0x17]
test al, al
jne 0x47f3d2
mov ecx, dword [esi + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x47f50e
mov esi, dword [esp + 0x48]
push esi
call fcn.004ccb85
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47f420
test esi, esi
je 0x47f409
mov edx, dword [esp + 0x44]
push edx
push eax
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
push str.z4004
xor esi, esi
call fcn.004a4b10
add esp, 4
push eax
push ebx
mov dword [esp + 0x3c], eax
call fcn.004ca9f2
push str.z8___7
mov ebp, eax
mov dword [esp + 0x28], esi
call fcn.004a4b10
add esp, 0xc
push str.z8_
mov dword [esp + 0x28], eax
call fcn.004a4b10
add esp, 4
push eax
push ebx
call fcn.004ca9f2
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x47f472
mov esi, eax
push str.z8____22__
call fcn.004a4b10
add esp, 4
push eax
push ebx
call fcn.004ca9f2
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
jae 0x47f493
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.004ca9f2
add esp, 8
mov dword [esp + 0x28], eax
cmp esi, eax
jae 0x47f4ab
mov esi, eax
push str.z04_cy
call fcn.004a4b10
add esp, 4
push eax
push ebx
call fcn.004ca9f2
add esp, 8
mov dword [esp + 0x30], eax
cmp esi, eax
jae 0x47f4cc
mov esi, eax
push str.z_4_386
call fcn.004a4b10
add esp, 4
push eax
push ebx
call fcn.004ca9f2
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
cmp esi, ebx
jae 0x47f4ef
mov esi, ebx
test ebx, ebx
je 0x47f4f7
test ebp, ebp
jne 0x47f50e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47f5aa
cmp dword [esp + 0x30], 0
je 0x47f5b5
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
call fcn.0041acb0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.0042dc30
mov esi, dword [esp + 0x48]
mov edi, eax
test esi, esi
je 0x47f551
mov ecx, dword [esp + 0x44]
push ecx
push 0
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x47f572
mov edx, dword [esp + 0x38]
push edx
push 0
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov esi, dword [esp + 0x54]
test esi, esi
je 0x47f593
mov eax, dword [esp + 0x50]
push eax
push 0
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
cmp dword [esp + 0x2c], 0
jne 0x47f50e
xor ecx, ecx
cmp dword [esp + 0x28], ecx
sete cl
xor edx, edx
test eax, eax
sete dl
xor ecx, edx
jne 0x47f50e
mov eax, dword [esp + 0x74]
cmp word [eax], cx
jne 0x47f5e7
push 0x4ef0b8
call fcn.004a4b10
add esp, 4
mov dword [esp + 0x74], eax
test ebp, ebp
je 0x47f64c
mov eax, dword [esp + 0x34]
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f5f4
sub eax, edx
sar eax, 1
cmp ebp, esi
jae 0x47f612
lea ecx, [eax + eax]
sub esi, ecx
sub esi, ebp
sar esi, 1
mov edi, esi
lea ebx, [ebp + eax*2]
lea eax, [esp + 0x50]
call fcn.00414350
mov ebp, eax
test edi, edi
jle 0x47f644
movzx ecx, word [ebp + edi*2 - 2]
lea eax, [ebp + edi*2 - 2]
xor edx, edx
mov word [ebp + edi*2], dx
cmp ecx, 0x20
je 0x47f63f
cmp ecx, 9
jne 0x47f644
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x18], 0
je 0x47f6c9
mov eax, dword [esp + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f660
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
lea ecx, [edx + eax*2]
lea eax, [esp + 0x1c]
push eax
call fcn.00498620
add esp, 4
test al, al
je 0x47f50e
mov ebx, dword [esp + 0x1c]
cmp ebx, 1
jl 0x47f50e
mov edi, ebx
lea esi, [esp + 0x38]
call fcn.00414050
test eax, eax
je 0x47f6bc
mov edx, dword [esp + 0x70]
xor edi, edi
mov ecx, ebx
call fcn.00414180
test eax, eax
jne 0x47f763
mov dword [esp + 0x10], 0x64
jmp 0x47f516
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4f5ac4
push str._r_t__n
push edi
xor eax, eax
call fcn.004ac860
add esp, 0x1c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4f5ac4
push 0x4ec724
push edi
xor eax, eax
call fcn.004ac860
add esp, 0x1c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4f5ac4
push 0x4ec71c
push edi
xor eax, eax
call fcn.004ac860
add esp, 0x1c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4f5ac4
push 0x4ec720
push edi
xor eax, eax
call fcn.004ac860
add esp, 0x1c
cmp dword [esp + 0x30], 0
push ebp
je 0x47f78b
mov ecx, dword [esp + 0x78]
test ebx, ebx
setne dl
movzx eax, dl
push eax
push ecx
lea edx, [esp + 0x44]
push edi
push edx
call fcn.0047ece0
add esp, 0x14
jmp 0x47f7a8
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x3c]
setne cl
movzx edx, cl
mov ecx, dword [esp + 0x74]
push ebp
push edx
push ebx
call fcn.004a51e0
xor ecx, ecx
add esp, 0xc
test al, al
sete cl
mov eax, ecx
jmp 0x47f7a8
mov edx, dword [esp + 0x78]
test ebx, ebx
setne al
movzx ecx, al
push ecx
push edx
lea eax, [esp + 0x44]
push eax
mov eax, edi
call fcn.0047f010
add esp, 0x10
cmp eax, 0x64
je 0x47f823
test eax, eax
jne 0x47f50e
cmp dword [esp + 0x18], eax
je 0x47f7d1
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
push ecx
mov eax, esi
call fcn.0046c490
jmp 0x47f7ec
lea eax, [esp + 0x38]
call fcn.00414e80
mov edi, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x18]
call fcn.004af6d0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp byte [esi + 0x17], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
jne 0x47f803
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x47f855
cmp dword [0x51c0a8], edi
je 0x47f855
mov ecx, 0x51c09c
call fcn.004049a0
cmp eax, edi
jne 0x47f51f
lea ecx, [esp + 0x44]
call fcn.00413fb0
lea ecx, [esp + 0x38]
call fcn.00413fb0
lea ecx, [esp + 0x50]
call fcn.00413fb0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0xc
and byte [esi + 0x15], 0x86
jmp 0x47f51f