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

Disassembly:
push 0xffffffffffffffff
push 0x521630
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb0]
mov ecx, ebp
call fcn.00419cb0
test al, al
jne 0x4a6809
mov esi, dword [esp + 0xb4]
test byte [esi + 0x34b], 8
jne 0x4a6809
test byte [ebp + 0x52c], 0x20
jne 0x4a6809
test byte [ebp + 0x545], 1
jne 0x4a6809
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test al, al
jne 0x4a6809
mov eax, dword [ebp + 0xa8]
cmp dword [eax + 0x94], 0
jle 0x4a6809
test byte [ebp + 0x510], 2
je 0x4a6809
lea eax, [esi + 0x280]
lea ebx, [esi + 0x270]
call fcn.0041be10
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.004a6180
mov edi, eax
mov eax, dword [esp + 0x1c]
sub edi, eax
mov eax, ebx
call fcn.0041be10
sub edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x28], edi
jle 0x4a6809
mov eax, dword [ebp + 0x318]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0xa8], ebx
call fcn.004a9180
mov eax, dword [esi + 0x31c]
cmp eax, ebx
je 0x4a639d
test byte [eax + 0x24], 4
je 0x4a639d
mov dword [esp + 0x2c], 1
jmp 0x4a63d5
movzx eax, byte [esi + 0x346]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x4a63d5
mov edx, dword [ebp + 0x2e8]
mov eax, dword [esi + 0x7c]
mov edx, dword [edx + 0xa4]
mov ecx, dword [ebp + 0xa8]
imul edx, eax
mov ecx, dword [ecx + 0x94]
xor eax, eax
cmp edx, ecx
setg al
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0x2e8]
and dword [esp + 0x40], 0x80000000
and byte [esp + 0x44], 0xfe
lea edx, [esi + 0x254]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0xa8], 1
test byte [esi + 0x349], 0x10
je 0x4a64a3
mov ebx, esi
call fcn.004bec40
mov ebx, dword [esi + 0x258]
mov edi, eax
add ebx, ebx
push 0
sar ebx, 1
lea eax, [esp + 0x40]
call fcn.0044e010
lea esi, [esp + 0x34]
call fcn.00449e80
lea esi, [esp + 0x58]
call fcn.004ee660
lea edi, [esp + 0x34]
call fcn.004f6290
test al, al
je 0x4a6494
lea esp, [esp]
lea esi, [esp + 0x34]
call fcn.0048a800
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
call fcn.0044dfb0
test al, al
je 0x4a647a
call fcn.0048a800
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
call fcn.0044dfe0
lea esi, [esp + 0x34]
call fcn.0044aa80
lea esi, [esp + 0x58]
lea edi, [esp + 0x34]
call fcn.004f6290
test al, al
jne 0x4a6450
mov esi, dword [esp + 0xb4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
push esi
call fcn.004c4d40
cmp eax, 3
jne 0x4a64b2
mov ebx, eax
jmp 0x4a64bd
xor ebx, ebx
cmp eax, 2
sete bl
add ebx, 1
mov ebp, dword [ebp + 0xbc]
mov edi, dword [esi + 0x31c]
lea eax, [esi + 0x2b0]
push eax
push ecx
push esi
call fcn.004ba360
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 4
push eax
push ebx
mov ebx, dword [esp + 0x3c]
push edi
push ecx
mov ecx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.004d7250
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x22e], 0
je 0x4a6548
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x4a6515
xor ecx, ecx
jmp 0x4a652b
mov ecx, dword [ebx + 0x3c]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebx + 0x28]
test edx, edx
jne 0x4a6536
xor eax, eax
jmp 0x4a653e
mov eax, dword [ebx + 0x2c]
sub eax, edx
sar eax, 3
sub eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x5c]
cmp ecx, eax
jl 0x4a656b
lea eax, [esi + 0x270]
call fcn.0041be10
mov edi, eax
add esi, 0x280
mov eax, esi
call fcn.0041be10
add edi, eax
mov byte [esp + 0x1b], 0
je 0x4a6570
mov byte [esp + 0x1b], 1
mov eax, dword [0x557040]
lea esi, [esp + 0x20]
lea edi, [esp + 0x48]
mov dword [esp + 0x1c], eax
call fcn.00449e80
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x4c], eax
mov esi, eax
jbe 0x4a6598
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a65a8
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x4a65ae
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x24], esi
je 0x4a673e
cmp dword [esp + 0x2c], 0
jne 0x4a65ca
cmp dword [esp + 0x28], 0
jle 0x4a6745
lea esi, [esp + 0x20]
call fcn.0048a800
mov edx, dword [eax]
push edx
mov eax, ebx
call fcn.004d8de0
test eax, eax
jle 0x4a6607
cmp dword [esp + 0x28], 0
jle 0x4a6745
cmp byte [esp + 0x1b], 0
jne 0x4a673e
call fcn.0048a800
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x4a6717
lea esi, [esp + 0x20]
call fcn.0048a800
mov ebp, dword [esp + 0xb4]
add ebp, 0x280
lea esi, [esp + 0x98]
mov edi, ebp
mov ebx, eax
call fcn.004ee660
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x90]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call fcn.00449e80
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x5c]
push ebx
call fcn.00474980
mov dword [esp + 0x38], esi
add esp, 4
lea esi, [esp + 0x88]
mov edi, ebp
mov dword [esp + 0x38], eax
call fcn.004ee660
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004f6290
test al, al
jne 0x4a6713
lea esi, [esp + 0x20]
call fcn.0048a800
mov ebp, dword [esp + 0xb4]
add ebp, 0x270
lea esi, [esp + 0x80]
mov edi, ebp
mov ebx, eax
call fcn.004ee660
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x70]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call fcn.00449e80
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x64]
push ebx
call fcn.00474980
mov dword [esp + 0x6c], esi
add esp, 4
lea esi, [esp + 0x78]
mov edi, ebp
mov dword [esp + 0x6c], eax
call fcn.004ee660
mov esi, eax
lea edi, [esp + 0x68]
call fcn.004f6290
test al, al
jne 0x4a6713
push 0
lea esi, [esp + 0x24]
call fcn.0048a800
push eax
mov eax, dword [esp + 0xbc]
push eax
call fcn.004beea0
test al, al
je 0x4a6713
sub dword [esp + 0x28], 1
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x4a6725
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 8]
jb 0x4a6734
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x24], 4
jmp 0x4a6586
cmp dword [esp + 0x28], 0
jg 0x4a6768
mov eax, dword [esp + 0xb4]
and byte [eax + 0x34b], 0xef
test byte [esp + 0x44], 1
je 0x4a6800
mov edx, dword [esp + 0x3c]
push edx
jmp 0x4a67f7
mov esi, dword [esp + 0xb4]
test byte [esi + 0x349], 0x10
jne 0x4a677f
or byte [esi + 0x34b], 0x10
mov eax, dword [0x557040]
mov ecx, dword [esp + 0x1c]
mov edx, eax
xor edx, ecx
test edx, 0x7ffff
jne 0x4a679d
xor eax, ecx
test eax, 0xfff80000
je 0x4a67eb
mov eax, dword [esi + 0x284]
test eax, eax
jne 0x4a67ab
xor ecx, ecx
jmp 0x4a67b6
mov ecx, dword [esi + 0x288]
sub ecx, eax
sar ecx, 3
mov edx, dword [esi + 0x274]
test edx, edx
jne 0x4a67c4
xor eax, eax
jmp 0x4a67cf
mov eax, dword [esi + 0x278]
sub eax, edx
sar eax, 3
add eax, ecx
jne 0x4a67eb
push 2
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004beea0
lea esi, [esp + 0x3c]
call fcn.00419a50
jmp 0x4a6800
test byte [esp + 0x44], 1
je 0x4a6800
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea esi, [esp + 0x48]
call fcn.00418f60
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret