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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dl, byte [ecx + eax]
movzx edx, dl
inc eax
cmp edx, 0xff
push edi
mov dword [esi + 4], eax
mov dword [esi + 0x74], edx
jl 0x4a2e20
lea edx, [eax + 2]
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [eax + ecx + 1]
movzx eax, byte [eax + ecx]
movzx edx, dx
or edx, eax
cmp edx, 0xff
mov dword [esi + 0x74], edx
jge 0x4a2dde
mov edx, 0xff
mov eax, dword [esi + 0x78]
lea edi, [esi + 0x80]
cmp eax, edi
mov dword [esi + 0x74], edx
je 0x4a2df7
push eax
call fcn.005ddc00
add esp, 4
mov ecx, dword [esi + 0x74]
lea edx, [ecx*4 + 4]
push edx
call fcn.005ddbe0
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esi + 0x78], eax
jne 0x4a2e22
mov dword [esi + 0x78], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [esi + 0x78]
mov dword [eax], ebx
mov eax, dword [esi + 0x74]
mov ebp, 1
cmp eax, ebp
jl 0x4a2ea4
push 0x3c
call fcn.005ddbe0
add esp, 4
cmp eax, ebx
je 0x4a300a
mov ecx, dword [esi + 0x68]
push ecx
mov ecx, eax
call fcn.004632c0
mov edi, eax
cmp edi, ebx
je 0x4a300a
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
mov dword [edi + 0x18], eax
mov ecx, dword [esi + 0x30]
mov dword [ecx], edi
mov edx, dword [esi + 0x78]
mov dword [edx + ebp*4], edi
mov eax, dword [esi + 0x6c]
add eax, ebp
push edi
mov ecx, esi
mov dword [edi + 0x1c], eax
call fcn.004a2990
mov al, byte [esi + 0x20]
test al, al
jne 0x4a300a
cmp dword [esi + 0xa94], ebx
sete cl
push ebx
push ebx
push ecx
push edi
mov ecx, esi
call fcn.004a1780
mov eax, dword [esi + 0x74]
inc ebp
cmp ebp, eax
jle 0x4a2e33
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dl, byte [ecx + eax]
movzx edx, dl
inc eax
cmp edx, 0xff
mov dword [esi + 4], eax
mov dword [esi + 0x70], edx
jge 0x4a2fab
cmp edx, 0x7f
jg 0x4a2fd3
mov edx, dword [esi + 0x7c]
mov dword [edx], ebx
mov eax, dword [esi + 0x7c]
mov word [eax + 4], bx
mov ecx, dword [esi + 0x7c]
mov word [ecx + 8], bx
mov edx, dword [esi + 0x7c]
mov word [edx + 6], bx
mov ecx, dword [esi + 0x70]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], eax
jl 0x4a3356
mov ebx, 0xc
mov edi, edi
mov edi, dword [esi + 4]
mov eax, dword [esi]
xor edx, edx
lea ecx, [edi + 2]
mov dword [esi + 4], ecx
mov dh, byte [eax + edi + 1]
push 0x3c
mov dl, byte [eax + edi]
mov edi, edx
lea edx, [ecx + 2]
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [ecx + eax + 1]
mov dl, byte [ecx + eax]
mov ebp, edx
call fcn.005ddbe0
add esp, 4
test eax, eax
je 0x4a300a
mov ecx, dword [esi + 0x68]
push ecx
mov ecx, eax
call fcn.004632c0
test eax, eax
mov dword [esp + 0x10], eax
je 0x4a300a
mov edx, dword [esi + 0x30]
mov ecx, dword [edx]
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 0x30]
mov dword [edx], eax
mov ecx, dword [esi + 0x7c]
mov dword [ebx + ecx], eax
mov edx, dword [esi + 0x64]
movzx ecx, di
movzx eax, bp
sub eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x14]
shrd eax, edx, 0x10
adc eax, 0
lea edi, [ecx + eax]
mov al, byte [esi + 0xa90]
test al, al
jne 0x4a3028
mov ecx, dword [esi + 0xa94]
test ecx, ecx
movzx edx, di
push edx
je 0x4a3014
call fcn.0048c780
jmp 0x4a3020
lea edx, [eax + 2]
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [eax + ecx + 1]
movzx eax, byte [eax + ecx]
movzx edx, dx
or edx, eax
cmp edx, 0x80
mov dword [esi + 0x70], edx
jge 0x4a2fd0
mov edx, 0x80
mov dword [esi + 0x70], edx
mov eax, dword [esi + 0x7c]
lea edi, [esi + 0x480]
cmp eax, edi
je 0x4a2fe9
push eax
call fcn.005ddc00
add esp, 4
mov eax, dword [esi + 0x70]
inc eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.005ddbe0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x7c], eax
jne 0x4a2ecb
mov dword [esi + 0x7c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x34]
push eax
call fcn.0043fab0
add esp, 8
mov ecx, dword [esi + 0x7c]
mov word [ebx + ecx + 4], ax
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
mov ebp, dword [esp + 0x18]
add edx, eax
add edx, ebp
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x1c], edx
mov eax, dword [esi + 0x7c]
mov word [ebx + eax + 8], 0
mov ecx, dword [esi + 0x7c]
mov word [ebx + ecx + 6], 0x300
mov al, byte [esi + 0xa90]
test al, al
je 0x4a328a
mov ecx, dword [esi + 4]
test al, 1
mov eax, dword [esi]
je 0x4a3085
mov dl, byte [eax + ecx]
movzx ebp, dl
mov edx, ebp
and edx, 0xc0
inc ecx
shl edx, 2
or ebp, edx
mov dword [esi + 4], ecx
mov dword [esp + 0x14], ebp
jmp 0x4a309a
lea edx, [ecx + 2]
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [eax + ecx + 1]
mov dl, byte [eax + ecx]
mov dword [esp + 0x14], edx
mov ebp, edx
mov edx, ebp
and dl, 0x30
xor ecx, ecx
cmp dl, 0x20
jne 0x4a30c6
mov ecx, dword [esi + 4]
lea edx, [ecx + 2]
mov dword [esi + 4], edx
xor edx, edx
mov dh, byte [eax + ecx + 1]
mov dl, byte [eax + ecx]
mov ecx, edx
cmp cx, 0x100
jae 0x4a30c6
mov ecx, 0x100
mov eax, dword [esi + 0x7c]
mov dx, word [esp + 0x14]
mov word [ebx + eax + 8], dx
mov eax, dword [esi + 0x7c]
mov dl, byte [eax + ebx + 8]
add eax, ebx
and dl, 0x30
cmp dl, 0x20
jne 0x4a30e8
mov word [eax + 6], cx
mov eax, dword [esi + 0x7c]
test byte [ebx + eax + 8], 6
je 0x4a319c
lea ecx, [esp + 0x20]
push ecx
movzx edi, di
mov edx, ecx
mov eax, edi
push edx
lea ebp, [esi + 0x34]
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call fcn.0043e2f0
mov eax, dword [esi + 0x7c]
lea ecx, [ebx + eax]
mov ax, word [ecx + 8]
and ax, 6
add esp, 0xc
cmp ax, 2
jne 0x4a3131
mov eax, dword [esp + 0x20]
jmp 0x4a3154
cmp ax, 4
jne 0x4a313d
mov eax, dword [esp + 0x24]
jmp 0x4a3154
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x3e4]
mov eax, dword [eax]
imul eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp eax, 1
jge 0x4a315e
mov eax, 1
mov word [ecx + 4], ax
lea ecx, [esp + 0x28]
push ecx
mov edx, ecx
mov eax, 0x64
push edx
push ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call fcn.0043e2f0
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4a3190
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a31c5
mov eax, dword [esi + 0x7c]
mov word [ebx + eax + 4], 0
jmp 0x4a31c5
mov ecx, dword [esi + 0xa94]
test ecx, ecx
movzx edx, di
push edx
je 0x4a31b1
call fcn.0048c780
jmp 0x4a31bd
lea eax, [esi + 0x34]
push eax
call fcn.0043fab0
add esp, 8
mov ecx, dword [esi + 0x7c]
mov word [ebx + ecx + 4], ax
test byte [esp + 0x14], 8
je 0x4a31e1
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.004a2990
mov ebp, dword [esp + 0x10]
jmp 0x4a331c
mov eax, dword [esi + 0xa88]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0049ccf0
mov edx, dword [esi + 0xa88]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.0049ccf0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x64]
lea edi, [ebp + 4]
push edi
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0044f4c0
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x50]
add esp, 0x10
test eax, eax
je 0x4a3237
push 1
push edi
call fcn.0046bce0
movzx eax, word [edi + 6]
cmp eax, 0xff
jge 0x4a327c
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
inc eax
imul ecx, eax
imul edx, eax
sar ecx, 8
mov word [edi + 4], cx
movzx ecx, word [edi]
imul ecx, eax
sar edx, 8
sar ecx, 8
mov eax, 1
mov word [edi + 2], dx
mov word [edi], cx
mov byte [ebp + 0x24], al
mov ebp, dword [esp + 0x10]
jmp 0x4a331c
xor eax, eax
mov byte [ebp + 0x24], al
mov ebp, dword [esp + 0x10]
jmp 0x4a331c
mov edx, dword [esi + 0xa88]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0049ccf0
mov ecx, dword [esi + 0xa88]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.0049ccf0
mov eax, dword [esi + 0x64]
lea edi, [ebp + 4]
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0044f4c0
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x50]
add esp, 0x10
test eax, eax
je 0x4a32dc
push 1
push edi
call fcn.0046bce0
movzx eax, word [edi + 6]
cmp eax, 0xff
jge 0x4a3317
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
inc eax
imul ecx, eax
imul edx, eax
sar ecx, 8
mov word [edi + 4], cx
movzx ecx, word [edi]
imul ecx, eax
sar edx, 8
sar ecx, 8
mov word [edi + 2], dx
mov word [edi], cx
mov eax, 1
jmp 0x4a3319
xor eax, eax
mov byte [ebp + 0x24], al
mov al, byte [esi + 0x20]
test al, al
jne 0x4a300a
mov edx, dword [esi + 0xa94]
test edx, edx
sete dl
push 0
push 0
mov ecx, esi
push edx
push ebp
call fcn.004a1780
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x70]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x4a2f00
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret