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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
and edx, 0xffffff02
mov dword [ebp - 0x18], 0
mov dword [ebp + 0xc], edx
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
movsx eax, byte [edi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0xc], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [ebp - 0x14], ecx
test dl, dl
je 0x556d45
cmp byte [ebx + 8], 0
je 0x556d34
push ecx
push ebx
call fcn.005367f0
movzx esi, word [ebx + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x556d34
mov dword [ebp - 0x18], 1
jmp 0x556d45
push edi
call fcn.00551340
add esp, 4
test eax, eax
jne 0x556fa8
cmp byte [ebx + 8], 0
jne 0x556d86
and byte [edi + 1], 0xf1
xor eax, eax
cmp byte [edi], 1
mov word [edi + 0x2a], ax
jne 0x556d75
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x556d75
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x556d75
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x556d86
push edi
call fcn.005363f0
add esp, 4
test eax, eax
jne 0x556fa8
test byte [edi + 1], 0x20
je 0x556da3
push edi
push dword [edi + 0x3c]
push dword [ebp - 4]
call fcn.005512f0
add esp, 0xc
test eax, eax
jne 0x556fa8
cmp dword [edi + 0x70], 0
jne 0x556dbf
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0x3c]
push dword [ebp + 8]
call fcn.00545770
add esp, 0x14
push dword [ebx + 0x48]
call fcn.0056d0a0
add esp, 4
test eax, eax
jne 0x556fa8
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00537410
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0x22]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.0053ca60
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jne 0x556fa8
cmp byte [ebx + 8], al
jne 0x556ed2
movsx eax, byte [edi + 0x44]
mov ecx, dword [ebp - 8]
dec eax
mov esi, dword [edi + 0x74]
cmp ecx, eax
jge 0x556e23
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x556e26
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jae 0x556e65
push 0x10d1b
call fcn.0055aa90
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
push dword [esi + 0x48]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
call fcn.0056d0a0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x556eb1
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
add eax, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffc
push eax
push dword [ebp - 0xc]
push ebx
call fcn.00545490
add esp, 0x1c
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x16]
push dword [ebp - 0x14]
dec eax
push eax
push esi
call fcn.0053ca60
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x556fa8
push edi
call fcn.00533450
mov esi, eax
add esp, 4
test esi, esi
jne 0x556fa6
movsx ecx, byte [edi + 0x44]
cmp ecx, dword [ebp - 8]
jle 0x556f45
push dword [edi + 0x74]
call fcn.0054f5a0
dec byte [edi + 0x44]
add esp, 4
movsx eax, byte [edi + 0x44]
mov esi, dword [ebp - 8]
cmp eax, esi
jle 0x556f2b
mov cl, byte [edi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x556f23
push eax
call fcn.0054f5a0
add esp, 4
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x556f07
movsx eax, byte [edi + 0x44]
push edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00533450
mov esi, eax
add esp, 4
test esi, esi
jne 0x556fa6
cmp dword [ebp - 0x18], 0
je 0x556f81
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [ebp - 0xc], eax
jl 0x556f71
mov dword [edi + 0x40], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.005478e0
add esp, 4
mov esi, eax
cmp byte [ebp + 0xc], 0
je 0x556f9e
push edi
call fcn.005364d0
add esp, 4
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret