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

Disassembly:
push 0xffffffffffffffff
push 0x4f2cb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x538]
mov eax, dword [ecx]
push edi
xor esi, esi
push esi
mov dword [esp + 0x14], ebx
call dword [eax + 0x34]
mov dword [ebx + 0x5df8], esi
xor eax, eax
lea edi, [ebx + 0x12f8]
mov ecx, 0x12c0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x230]
mov ecx, dword [ecx + 0x84]
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x20], ebx
je 0x491ea6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov edx, dword [ebx]
push 0xff
mov ecx, ebx
call dword [edx + 0xc8]
push 0xe
mov edi, 0xf
push 0x50a48c
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
call fcn.00401eb0
push 0xa
push 0x50a49c
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.00401eb0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x78], 1
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov ebp, eax
cmp dword [esp + 0x48], 0x10
jb 0x491f29
mov edx, dword [esp + 0x34]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
mov dword [esp + 0x70], 0xffffffff
jb 0x491f52
mov eax, dword [esp + 0x50]
push eax
call fcn.004c2c15
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
mov dword [esp + 0x14], esi
xor edi, edi
jmp 0x491f70
mov esi, 0x3c
jmp 0x491f80
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x1b0]
jge 0x491fa8
mov eax, dword [ebx]
push 0x54
push 0x134
push 0x32
push 0xf1
push esi
push edi
push ebp
mov ecx, ebx
call dword [eax + 0x68]
mov edx, dword [esp + 0x14]
inc edx
add esi, 0x54
cmp esi, 0x330
mov dword [esp + 0x14], edx
jl 0x491f80
add edi, 0x134
cmp edi, 0x39c
jl 0x491f70
call fcn.004c2c61
cdq
mov ecx, 5
idiv ecx
add edx, 0xc
test edx, edx
jle 0x492160
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
call fcn.004c2c61
cdq
mov ecx, 0x4e
idiv ecx
mov edi, edx
mov dword [esp + 0x2c], edi
call fcn.004c2c61
cdq
mov ecx, 0x3a
idiv ecx
cmp edx, 6
mov dword [esp + 0x18], edx
jl 0x492003
call fcn.004c2c61
and eax, 0x80000001
jns 0x49202a
dec eax
or eax, 0xfffffffe
inc eax
mov dword [esp + 0x28], eax
sub eax, 0
je 0x49203d
dec eax
jne 0x492042
mov ebx, 0x29
jmp 0x492042
mov ebx, 0x28
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + ebx*4 + 0x394]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp + ebx*4 + 0x394]
mov eax, dword [ecx]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
call dword [eax + 0x24]
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
lea ecx, [esi + edi]
add ebp, edx
cmp ecx, 0x4f
jg 0x492152
mov eax, dword [esp + 0x18]
lea edx, [eax + ebp]
cmp edx, 0x3b
jg 0x492152
test esi, esi
mov dl, 1
jle 0x492108
imul edi, edi, 0x3c
add edi, eax
mov eax, dword [esp + 0x10]
lea edi, [eax + edi*4 + 0x12f8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov edi, edi
test ebp, ebp
jle 0x4920d5
mov eax, edi
mov ecx, ebp
cmp dword [eax], 0
je 0x4920cf
xor dl, dl
add eax, 4
dec ecx
jne 0x4920c8
mov eax, dword [esp + 0x14]
add edi, 0xf0
dec eax
mov dword [esp + 0x14], eax
jne 0x4920c0
cmp dl, 1
jne 0x492152
mov edx, dword [esp + 0x24]
nop
test ebp, ebp
jle 0x4920ff
mov eax, dword [esp + 0x28]
mov ecx, ebp
inc eax
mov edi, edx
rep stosd dword es:[edi], eax
add edx, 0xf0
dec esi
jne 0x4920f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebx*4 + 0x394]
mov edi, dword [esp + 0x20]
mov edx, dword [ecx]
mov ebp, dword [edi]
mov esi, ecx
call dword [edx + 0x24]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x38]
push 0
shl ecx, 1
push ecx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + ebx*4 + 0x394]
shl edx, 1
push edx
push ecx
mov ecx, edi
call dword [ebp + 0x68]
dec dword [esp + 0x1c]
jne 0x491ff0
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret