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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x100b7000]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x24]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
push ebx
xor ecx, ecx
mov ebx, edx
shr ebx, 1
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
jmp 0x49c3ee
mov ebx, dword [esp + 0x1c]
movsx esi, word [edi + 0x54]
mov eax, dword [edi + esi*4 + 0x80]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x49c435
cmp byte [eax + 1], 0
je 0x49c5af
lea ecx, [edi + 0x84]
push ecx
call fcn.0049414a
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x49c5af
xor ecx, ecx
mov dword [edi + 0x54], 1
mov word [edi + 0x58], cx
jmp 0x49c3ee
cmp byte [eax + 1], 0
jne 0x49c447
movzx edx, word [eax + 0xe]
cmp edx, ebx
jle 0x49c5af
mov ebx, dword [edi + esi*4 + 0x7c]
movzx eax, word [edi + esi*2 + 0x54]
mov ecx, dword [ebx + 0x44]
push ecx
mov dword [esp + 0x1c], eax
call fcn.004601ca
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x49c4f0
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
je 0x49c4ab
cmp byte [eax + 1], 1
jne 0x49c4ab
mov dx, word [eax + 0x14]
cmp dx, word [eax + 0x10]
jne 0x49c4ab
cmp dword [ebx + 0x48], 1
je 0x49c4ab
movzx ecx, word [ebx + 0x10]
cmp ecx, dword [esp + 0x18]
jne 0x49c4ab
lea edx, [esp + 0x24]
push edx
push eax
push ebx
call fcn.0049321a
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x49c4f0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call fcn.0044490a
movzx ecx, byte [edi + 0x52]
xor edx, edx
cmp esi, 1
sete dl
push ecx
mov ecx, eax
mov dword [esp + 0x24], eax
push edx
mov edx, dword [esp + 0x20]
push ebx
call fcn.0049427a
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], eax
test esi, esi
je 0x49c4e8
call fcn.0043deba
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x49c544
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov esi, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004ce8ca
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x49c549
call fcn.004386ca
cmp dword [ebx + 0x78], 0
jne 0x49c5a0
mov eax, dword [ebx + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x49c5a0
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x49c59b
test al, al
je 0x49c59b
cmp al, 2
jb 0x49c589
mov eax, dword [0x100b873c]
test eax, eax
je 0x49c575
call eax
mov eax, ebx
call fcn.0048ba7a
mov eax, dword [0x100b8740]
test eax, eax
je 0x49c59b
call eax
jmp 0x49c59b
cmp byte [ebx + 4], 0
jne 0x49c59b
push 0
push 0
call fcn.004442da
add esp, 8
call fcn.004483da
dec word [edi + 0x54]
cmp dword [esp + 0xc], 0
je 0x49c3ea
mov esi, dword [esp + 0x10]
test esi, esi
je 0x49c5bc
call fcn.0043deba
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.00428ac4
mov esp, ebp
pop ebp
ret