Function at 0x481cc0
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 0x482470
mov eax, edi
mov esi, dword [eax + 0x164]
mov dword [esp + 0x30], esi
mov dword [eax + 0x164], 0
mov dword [esp], ebp
call fcn.004a2c80
test ah, 0x30
je 0x481d15
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x482420
cmp esi, ebx
jg 0x4824e7
mov ecx, dword [edi + 0x108]
test ecx, ecx
jne 0x4823b0
cmp dword [esp + 0x30], ebx
je 0x4823ef
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 0x481d52
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 0x482100
mov eax, dword [eax + 0x18c]
test eax, eax
jne 0x4820b0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xfc]
test eax, eax
je 0x4820d3
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x481dc0
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 0x482130
mov esi, dword [ebp + 0x8c]
test esi, esi
je 0x48213e
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call fcn.00503f60
test eax, eax
je 0x482130
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call fcn.00503f60
mov dword [esp], eax
call fcn.00503f00
mov dword [esp + 0x40], eax
test eax, eax
js 0x4820f0
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0xe4]
test ecx, ecx
jne 0x481e3c
mov edx, dword [eax + 0xe0]
test edx, edx
jne 0x4822b0
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 0x4821a0
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 0x481eb2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
test byte [ecx + 0x38], 1
jne 0x4821e0
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 0x482260
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.0054cb10
test eax, eax
js 0x482220
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 0x482150
mov dword [ebx + 0x140], edx
mov dword [ebx + 0x13c], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x481f6e
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 0x4820f0
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 0x481fdd
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.004814f0
test eax, eax
jle 0x481d9d
cmp dword [esp + 0x2c], eax
je 0x482370
cmp dword [esp + 0x74], 0x17
je 0x482070
sub dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
jmp 0x481d40
mov edx, dword [ebp + 0x104]
test dl, 1
je 0x482058
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 0xe4], 0
cmp eax, ebx
je 0x482387
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 0x481d9d
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xfc]
test eax, eax
jne 0x481d93
mov dword [esp], ebp
call fcn.004851d0
test eax, eax
jne 0x481d93
lea esi, [esi]
lea edi, [edi]
mov eax, 0xffffffff
jmp 0x481d9d
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.004814f0
jmp 0x48203f
mov edi, dword [ebp + 0x8c]
test edi, edi
jne 0x482320
mov dword [esp + 0x40], 0
jmp 0x481e3c
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 0x4820f0
mov eax, dword [esp + 0x40]
add dword [ebx + 0x134], eax
mov edx, dword [esp + 0x48]
jmp 0x481f50
mov edi, dword [ebp + 0x190]
test edi, edi
jne 0x481e84
mov eax, dword [ebp]
mov ecx, eax
sar ecx, 8
cmp ecx, 3
jne 0x481e87
cmp eax, 0x301
jle 0x481e87
lea eax, [edx + 3]
mov dword [esp + 0x38], eax
mov al, 1
jmp 0x481e8e
mov dword [esp + 0x3c], edx
mov dword [esp], eax
call fcn.00503e40
and eax, 0xf0007
cmp eax, 2
mov edx, dword [esp + 0x3c]
je 0x4824a0
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 0x481ec6
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.004f5490
mov eax, 0xffffffff
jmp 0x481d9d
cmp dword [esp + 0x24], 4
jb 0x482330
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 0x481f44
cmp dword [esp + 0x74], 0x17
jne 0x481e32
mov dword [esp + 4], 1
mov dword [esp], 0
mov ecx, dword [esp + 0x34]
mov edx, 0x17
mov eax, ebp
call fcn.00481670
test eax, eax
jle 0x4820f0
cmp eax, 0x55
jg 0x48251d
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 0x481e5e
mov dword [esp + 0x40], 0
jmp 0x481e17
mov esi, dword [esp + 0x24]
test esi, esi
je 0x482292
mov eax, dword [esp + 0x34]
mov al, byte [eax]
mov byte [esp + 0x48], al
mov byte [ecx], al
test byte [esp + 0x24], 2
je 0x482292
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ax, word [esi + edi - 2]
mov word [ecx + edi - 2], ax
jmp 0x482292
mov eax, dword [ebp + 0x58]
mov dword [eax + 0xe4], 0
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x104]
and edx, 0x10
je 0x482096
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 8
jne 0x482096
mov dword [esp], ebp
call fcn.004856e0
jmp 0x482096
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.004814f0
test eax, eax
jle 0x4824d9
add eax, esi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], ebx
jne 0x481d35
test byte [ebp + 0x104], 0x10
je 0x482408
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 8
je 0x4824c8
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 0x481daa
jne 0x481d15
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.004f5490
mov eax, 0xffffffff
jmp 0x481daa
mov dword [esp + 8], str.s__s3__wnum___INT_MAX
mov dword [esp + 4], 0x287
mov dword [esp], str.s3_pkt.c
call fcn.004bc160
mov eax, dword [ebp + 0x58]
jmp 0x481ce9
mov eax, dword [ebp + 0x8c]
mov dword [esp], eax
call fcn.00503e80
mov dword [esp + 0x44], eax
cmp eax, 1
mov edx, dword [esp + 0x3c]
jle 0x481eb2
mov dword [esp + 0x3c], eax
jmp 0x481ec6
mov dword [esp], ebp
call fcn.004856e0
mov eax, dword [esp + 0x30]
jmp 0x481daa
mov edx, dword [ebp + 0x58]
mov dword [edx + 0x164], esi
jmp 0x481daa
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.004f5490
mov eax, 0xffffffff
jmp 0x481daa
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.004f5490
mov eax, 0xffffffff
jmp 0x481d9d