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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, eax
cmp byte [ebx + 0x49], 4
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], edi
jne 0x49cd30
mov eax, dword [ebx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 0x3c]
test eax, eax
je 0x49cd70
lea ebx, [ebx]
cmp eax, ebx
je 0x49cd4d
test ecx, ecx
je 0x49cd56
cmp dword [eax + 0x3c], ecx
je 0x49cd56
mov eax, dword [eax + 8]
test eax, eax
jne 0x49cd40
jmp 0x49cd70
test eax, eax
je 0x49cd70
push ebx
mov edi, ecx
call fcn.00494ef0
add esp, 4
test eax, eax
jne 0x49cf25
mov edi, dword [ebp - 0x10]
cmp dword [ebx + 0x10], 0
jne 0x49cdd5
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x49cda2
mov cl, 0x10
test byte [eax + 0x48], cl
je 0x49cd9b
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xc]
jne 0x49cd9b
mov edx, dword [eax + 0x1c]
cmp edx, dword [ebp + 0x10]
jne 0x49cd9b
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x49cd82
test byte [ebx + 0x48], 2
je 0x49cdd5
mov edx, dword [ebp + 0x10]
test edx, edx
jl 0x49cdd8
jg 0x49cdb7
cmp dword [ebp + 0xc], 0
jbe 0x49cdd8
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, edx
sbb ecx, 0
cmp dword [ebx + 0x18], eax
jne 0x49cdd8
cmp dword [ebx + 0x1c], ecx
jne 0x49cdd8
mov dword [ebp - 0xc], 0xffffffff
jmp 0x49cdfe
mov edx, dword [ebp + 0x10]
cmp dword [ebp + 0x24], 0
jne 0x49cdfe
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
call fcn.0049c280
add esp, 0x10
test eax, eax
jne 0x49cf25
movsx edx, word [ebx + 0x4c]
mov esi, dword [ebx + edx*4 + 0x78]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov edi, dword [edi + 0x50]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
push edi
mov eax, esi
mov dword [ebp - 0x10], edi
call fcn.00491970
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x49cf25
movsx ecx, word [ebx + 0x4c]
movzx edx, word [ebx + ecx*2 + 0x4e]
lea eax, [ebx + ecx*2 + 0x4e]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
test ecx, ecx
jne 0x49cecd
mov eax, dword [esi + 0x44]
call fcn.0048b4d0
test eax, eax
jne 0x49cf25
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 8]
movzx edi, byte [eax + ecx*2]
movzx edx, byte [eax + ecx*2 + 1]
lea eax, [eax + ecx*2]
movzx eax, word [esi + 0x14]
shl edi, 8
or edi, edx
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x49ce9c
mov ecx, dword [ebp - 0x10]
push 4
push edi
push 0xffffffffffffffff
push ecx
call fcn.004bb874
add esp, 0x10
lea edx, [ebp + 0x24]
push edx
mov eax, edi
mov ecx, esi
call fcn.004917b0
movzx ecx, word [ebp + 0x24]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push edx
call fcn.00476f60
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jne 0x49cf25
mov edi, dword [ebp - 0x10]
jmp 0x49cedf
jns 0x49cedf
cmp word [esi + 0x12], 0
jbe 0x49cedf
inc word [eax]
movzx eax, word [eax]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push edi
push eax
xor eax, eax
mov ecx, esi
call fcn.0048c470
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0x14
mov word [ebx + 0x2c], cx
test eax, eax
jne 0x49cf25
cmp byte [esi + 1], cl
je 0x49cf25
and byte [ebx + 0x48], 0xfd
call fcn.00496f00
movsx edx, word [ebx + 0x4c]
mov edx, dword [ebx + edx*4 + 0x78]
xor cl, cl
mov byte [edx + 1], cl
mov byte [ebx + 0x49], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret