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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x7c]
mov edi, dword [ebp + 0x58]
mov dword [ebp + 0x18], 1
mov eax, dword [edi + 0x164]
test eax, eax
js 0x47f770
mov eax, edi
mov esi, dword [eax + 0x164]
mov dword [esp + 0x30], esi
mov dword [eax + 0x164], 0
mov dword [esp], ebp
call fcn.0049fec0
test ah, 0x30
je 0x47f015
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x47f720
cmp esi, ebx
jg 0x47f7e7
mov ecx, dword [edi + 0x108]
test ecx, ecx
jne 0x47f6b0
cmp dword [esp + 0x30], ebx
je 0x47f6ef
sub ebx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov edi, ebx
nop
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x24], edi
cmp edi, eax
jbe 0x47f052
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x28], eax
mov edx, dword [eax + 0x108]
test edx, edx
jne 0x47f400
mov eax, dword [eax + 0x18c]
test eax, eax
jne 0x47f3b0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xfc]
test eax, eax
je 0x47f3d3
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x47f0c0
xor eax, eax
mov edx, dword [ebp + 0x58]
mov ebx, dword [esp + 0x30]
mov dword [edx + 0x164], ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0x58]
mov eax, dword [ebp + 0xc0]
test eax, eax
je 0x47f430
mov esi, dword [ebp + 0x8c]
test esi, esi
je 0x47f43e
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call fcn.004ff040
test eax, eax
je 0x47f430
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call fcn.004ff040
mov dword [esp], eax
call fcn.004fefe0
mov dword [esp + 0x40], eax
test eax, eax
js 0x47f3f0
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0xe4]
test ecx, ecx
jne 0x47f13c
mov edx, dword [eax + 0xe0]
test edx, edx
jne 0x47f5b0
mov dword [eax + 0xe4], 1
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0xfc]
lea eax, [edx + 5]
neg eax
and eax, 7
add edx, eax
mov dword [edi + 0x104], eax
mov dword [esp + 0x4c], 0
mov al, byte [esp + 0x74]
mov byte [edx], al
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x130], eax
mov eax, dword [ebp]
sar eax, 8
mov byte [edx + 1], al
cmp dword [ebp + 0x34], 0x1111
je 0x47f4a0
mov eax, dword [ebp]
lea edi, [edx + 3]
mov dword [esp + 0x38], edi
mov byte [edx + 2], al
mov eax, dword [esp + 0x38]
lea edx, [eax + 2]
mov eax, dword [ebp + 0x8c]
test eax, eax
je 0x47f1b2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
test byte [ecx + 0x38], 1
jne 0x47f4e0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x3c]
lea ecx, [edx + eax]
mov dword [ebx + 0x13c], ecx
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x134], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x140], eax
mov eax, dword [ebp + 0x94]
test eax, eax
je 0x47f560
mov dword [esp + 0x48], edx
mov esi, dword [ebp + 0x58]
mov ecx, dword [esi + 0x134]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x140]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x4400
mov ecx, dword [esi + 0x13c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00547c40
test eax, eax
js 0x47f520
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x140], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x47f450
mov dword [ebx + 0x140], edx
mov dword [ebx + 0x13c], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x47f26e
mov eax, dword [esp + 0x3c]
add dword [ebx + 0x134], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
mov dword [esp + 4], 1
mov dword [esp], ebp
call dword [eax]
test eax, eax
jle 0x47f3f0
mov eax, dword [ebx + 0x134]
shr eax, 8
mov esi, dword [esp + 0x38]
mov byte [esi], al
mov eax, dword [ebx + 0x134]
mov byte [esi + 1], al
mov edx, dword [ebp + 0x64]
test edx, edx
je 0x47f2dd
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 5
mov eax, esi
sub eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
mov dword [esp], 1
call edx
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x130], eax
mov eax, dword [ebx + 0x134]
add eax, 5
mov dword [ebx + 0x134], eax
add eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov dword [edi + 0x108], eax
mov eax, dword [ebp + 0x58]
mov ebx, dword [esp + 0x24]
mov dword [eax + 0x168], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x174], ecx
mov esi, dword [esp + 0x74]
mov dword [eax + 0x16c], esi
mov dword [eax + 0x170], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0047e7f0
test eax, eax
jle 0x47f09d
cmp dword [esp + 0x2c], eax
je 0x47f670
cmp dword [esp + 0x74], 0x17
je 0x47f370
sub dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
jmp 0x47f040
mov edx, dword [ebp + 0x104]
test dl, 1
je 0x47f358
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 0xe4], 0
cmp eax, ebx
je 0x47f687
mov ebx, eax
mov eax, dword [esp + 0x30]
add eax, ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp], ebp
call dword [eax + 0x3c]
test eax, eax
jle 0x47f09d
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xfc]
test eax, eax
jne 0x47f093
mov dword [esp], ebp
call fcn.004824d0
test eax, eax
jne 0x47f093
lea esi, [esi]
lea edi, [edi]
mov eax, 0xffffffff
jmp 0x47f09d
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0047e7f0
jmp 0x47f33f
mov edi, dword [ebp + 0x8c]
test edi, edi
jne 0x47f620
mov dword [esp + 0x40], 0
jmp 0x47f13c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
mov dword [esp + 8], 1
mov eax, dword [esp + 0x3c]
add eax, dword [ebx + 0x134]
add eax, edx
mov dword [esp + 0x48], edx
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [ecx + 4]
test eax, eax
js 0x47f3f0
mov eax, dword [esp + 0x40]
add dword [ebx + 0x134], eax
mov edx, dword [esp + 0x48]
jmp 0x47f250
mov edi, dword [ebp + 0x190]
test edi, edi
jne 0x47f184
mov eax, dword [ebp]
mov ecx, eax
sar ecx, 8
cmp ecx, 3
jne 0x47f187
cmp eax, 0x301
jle 0x47f187
lea eax, [edx + 3]
mov dword [esp + 0x38], eax
mov al, 1
jmp 0x47f18e
mov dword [esp + 0x3c], edx
mov dword [esp], eax
call fcn.004fef20
and eax, 0xf0007
cmp eax, 2
mov edx, dword [esp + 0x3c]
je 0x47f7a0
cmp eax, 6
sete al
mov esi, eax
and esi, 0xff
shl esi, 3
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
mov eax, esi
jmp 0x47f1c6
mov dword [esp + 0x10], 0x3f4
mov dword [esp + 0xc], str.s3_pkt.c
mov dword [esp + 8], 0x8d
mov dword [esp + 4], 0x68
mov dword [esp], 0x14
call fcn.004f0560
mov eax, 0xffffffff
jmp 0x47f09d
cmp dword [esp + 0x24], 4
jb 0x47f630
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov dword [ecx], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esi + edi - 4]
mov dword [ecx + edi - 4], eax
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x13c]
mov dword [ebx + 0x140], eax
jmp 0x47f244
cmp dword [esp + 0x74], 0x17
jne 0x47f132
mov dword [esp + 4], 1
mov dword [esp], 0
mov ecx, dword [esp + 0x34]
mov edx, 0x17
mov eax, ebp
call fcn.0047e970
test eax, eax
jle 0x47f3f0
cmp eax, 0x55
jg 0x47f81d
mov edx, dword [ebp + 0x58]
mov dword [edx + 0xe4], 1
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0x104]
add edx, eax
add edx, dword [edi + 0xfc]
mov dword [esp + 0x4c], eax
jmp 0x47f15e
mov dword [esp + 0x40], 0
jmp 0x47f117
mov esi, dword [esp + 0x24]
test esi, esi
je 0x47f592
mov eax, dword [esp + 0x34]
mov al, byte [eax]
mov byte [esp + 0x48], al
mov byte [ecx], al
test byte [esp + 0x24], 2
je 0x47f592
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ax, word [esi + edi - 2]
mov word [ecx + edi - 2], ax
jmp 0x47f592
mov eax, dword [ebp + 0x58]
mov dword [eax + 0xe4], 0
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x104]
and edx, 0x10
je 0x47f396
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 8
jne 0x47f396
mov dword [esp], ebp
call fcn.004829e0
jmp 0x47f396
mov eax, dword [ebp + 0x58]
mov eax, dword [eax + 0x168]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0047e7f0
test eax, eax
jle 0x47f7d9
add eax, esi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], ebx
jne 0x47f035
test byte [ebp + 0x104], 0x10
je 0x47f708
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 8
je 0x47f7c8
mov eax, dword [esp + 0x30]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call dword [ebp + 0x20]
test eax, eax
js 0x47f0aa
jne 0x47f015
mov dword [esp + 0x10], 0x290
mov dword [esp + 0xc], str.s3_pkt.c
mov dword [esp + 8], 0xe5
mov dword [esp + 4], 0x9e
mov dword [esp], 0x14
call fcn.004f0560
mov eax, 0xffffffff
jmp 0x47f0aa
mov dword [esp + 8], str.s__s3__wnum___INT_MAX
mov dword [esp + 4], 0x287
mov dword [esp], str.s3_pkt.c
call fcn.004b73a0
mov eax, dword [ebp + 0x58]
jmp 0x47efe9
mov eax, dword [ebp + 0x8c]
mov dword [esp], eax
call fcn.004fef60
mov dword [esp + 0x44], eax
cmp eax, 1
mov edx, dword [esp + 0x3c]
jle 0x47f1b2
mov dword [esp + 0x3c], eax
jmp 0x47f1c6
mov dword [esp], ebp
call fcn.004829e0
mov eax, dword [esp + 0x30]
jmp 0x47f0aa
mov edx, dword [ebp + 0x58]
mov dword [edx + 0x164], esi
jmp 0x47f0aa
mov dword [esp + 0x10], 0x29f
mov dword [esp + 0xc], str.s3_pkt.c
mov dword [esp + 8], 0x10f
mov dword [esp + 4], 0x9e
mov dword [esp], 0x14
call fcn.004f0560
mov eax, 0xffffffff
jmp 0x47f0aa
mov dword [esp + 0x10], 0x3a6
mov dword [esp + 0xc], str.s3_pkt.c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0x68
mov dword [esp], 0x14
call fcn.004f0560
mov eax, 0xffffffff
jmp 0x47f09d