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

Disassembly:
sub esp, 0x158
cmp dword [esp + 0x160], 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
push esi
push edi
jge 0x48dad9
mov al, byte [ebp + 0x20]
xor esi, esi
xor edx, edx
xor ebx, ebx
test al, al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x48d830
lea esi, [ebp + 0x24]
mov ecx, 0xa
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
test al, al
je 0x48d830
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
jmp 0x48d85c
mov al, byte [ebp + 0x10]
test al, al
je 0x48dad9
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
lea eax, [esp + 0x70]
call fcn.0048bb80
push 0x2f8
call fcn.004fde48
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x48d882
lea ecx, [ebx + 0x1d4]
mov dword [ebx + 0x198], esi
call fcn.0046a650
jmp 0x48d884
xor ebx, ebx
lea edi, [ebx + 0x19c]
mov ecx, 0xd
lea esi, [esp + 0x60]
xor al, al
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 4], al
je 0x48d89f
mov al, byte [ebp + 8]
mov byte [ebx + 0x1d0], al
mov eax, dword [esp + 0x17c]
or edx, 0xffffffff
cmp byte [eax + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
je 0x48d8da
cmp byte [eax + 8], 0
je 0x48d8da
mov ecx, dword [esp + 0x178]
mov al, byte [ecx + 4]
test al, al
je 0x48d8da
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
jmp 0x48d8de
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x184]
cmp byte [eax + 4], 0
je 0x48d908
cmp byte [eax + 8], 0
je 0x48d908
mov ecx, dword [esp + 0x180]
mov al, byte [ecx + 4]
test al, al
je 0x48d908
mov ecx, dword [ecx + 8]
mov dword [esp + 0x18], ecx
jmp 0x48d90c
mov dword [esp + 0x18], edx
xor eax, eax
cmp byte [ebp + 0x128], al
je 0x48d91c
mov eax, dword [ebp + 0x12c]
lea edx, [ebx + 0x1d4]
call fcn.0046a7f0
lea eax, [esp + 0x60]
call fcn.0048a300
lea eax, [esp + 0x20]
call fcn.0048a300
lea eax, [esp + 0x128]
call fcn.0048a300
cmp byte [ebp + 0x50], 0
je 0x48d959
lea esi, [ebp + 0x54]
mov ecx, 0x10
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0x98], 0
je 0x48d973
lea esi, [ebp + 0x9c]
mov ecx, 0x10
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp + 0xe0], 0
je 0x48d990
lea esi, [ebp + 0xe4]
mov ecx, 0x10
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x170]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
add edx, edx
mov eax, ecx
xor ebp, ebp
add edx, edx
sub eax, edx
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 0x58c958]
mov dword [ebx + 0x198], ebp
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x48dac2
xor eax, eax
cmp ecx, 0x15
ja 0x48d9e3
call fcn.0048daf0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x14]
push esi
push eax
push ebp
lea edi, [esp + 0xb0]
lea edx, [esp + 0x6c]
call fcn.0048d640
mov ecx, dword [esp + 0x14]
push esi
push ecx
mov ecx, dword [esp + 0x174]
push ebp
lea edi, [esp + 0xdc]
lea edx, [esp + 0x2c]
call fcn.0048d640
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x16c]
push esi
push edx
push ebp
lea edi, [esp + 0x108]
lea edx, [esp + 0x134]
call fcn.0048d640
cmp dword [esp + 0xd0], 0
jne 0x48da6a
mov ecx, 0xb
lea esi, [esp + 0xa4]
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0xfc], 0
jne 0x48da89
mov ecx, 0xb
lea esi, [esp + 0xd0]
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x198], 1
mov eax, dword [ebx + 0x198]
add dword [esp + 0x1c], 4
imul eax, eax, 0x88
add ebp, 1
cmp ebp, 3
lea edi, [eax + ebx - 0x88]
mov ecx, 0x22
lea esi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
jb 0x48d9c8
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
push eax
push ecx
mov eax, ebx
call fcn.0048ab40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 0x1c