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

Disassembly:
sub esp, 0x30
mov eax, dword [ecx + 0x34]
push ebx
xor edx, edx
push ebp
push esi
cmp eax, edx
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
jbe 0x51fcbd
mov eax, dword [0xb07d30]
mov ebx, 0xffffffe8
lea ebp, [ecx + 0x14]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 0x78]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
jmp 0x51fc06
mov ecx, dword [esp + 0x20]
test ebx, ebx
jl 0x51fc0f
mov ebp, dword [ecx + 0x2c]
add ebp, ebx
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 8]
test eax, eax
je 0x51fc29
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x38], edx
je 0x51fc4b
mov eax, dword [eax + 8]
test eax, eax
jne 0x51fc1a
xor edi, edi
mov al, byte [edi + 0xc]
test al, al
jns 0x51fc4f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
cmp ecx, eax
je 0x51fce1
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
jmp 0x51fc96
mov edi, ecx
jmp 0x51fc2b
mov eax, dword [edi + 0x34]
xor esi, esi
test eax, eax
jbe 0x51fc96
mov edx, 0xffffffe8
lea ecx, [edi + 0x14]
test edx, edx
jge 0x51fc68
mov eax, ecx
jmp 0x51fc6d
mov eax, dword [edi + 0x2c]
add eax, edx
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x10], ebx
je 0x51fd02
mov eax, dword [esp + 0x10]
add ecx, 0xc
inc eax
inc esi
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
add edx, 0xc
cmp esi, eax
jb 0x51fc60
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc eax
add ebp, 0xc
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
jb 0x51fc02
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
add esp, 0x30
ret 8
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp]
mov edx, eax
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 8]
pop ebp
pop ebx
mov dword [edx + 8], ecx
add esp, 0x30
ret 8
mov edx, eax
add edi, 4
mov ecx, dword [edx]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
mov dl, byte [eax + 3]
mov dword [esp + 0x3c], ecx
mov cl, byte [ebp + 3]
add dl, cl
and ecx, 0xff
mov byte [esp + 0x37], dl
mov edx, dword [esp + 0x20]
add edx, 4
mov ebx, dword [edx]
mov dword [esp + 0x2c], ebx
mov bl, byte [ebp + 2]
mov dx, word [edx + 4]
mov byte [esp + 0x36], bl
mov bl, byte [eax + 1]
mov word [esp + 0x30], dx
mov edx, dword [edi]
add bl, byte [ebp + 1]
mov dword [esp + 0x24], edx
cmp ecx, 3
mov dx, word [edi + 4]
mov byte [esp + 0x35], bl
mov word [esp + 0x28], dx
mov dl, byte [ebp]
mov byte [esp + 0x34], dl
ja case.default.0x51fd76
jmp dword [ecx*4 + 0x51fe38]
mov bl, byte [eax]
mov al, byte [eax + 2]
mov cl, byte [esp + 0x36]
add dl, bl
add cl, al
mov eax, dword [esp + 0x44]
mov byte [esp + 0x36], cl
mov byte [esp + 0x34], dl
mov edx, dword [esp + 0x34]
mov ecx, eax
pop edi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], esi
pop esi
pop ebp
pop ebx
mov dword [ecx + 8], edx
add esp, 0x30
ret 8
mov cl, byte [eax + 2]
mov bl, byte [esp + 0x27]
add dl, cl
mov cl, byte [esp + 0x2f]
mov byte [esp + 0x34], dl
mov dl, byte [eax]
mov al, byte [esp + 0x36]
sub cl, bl
sub cl, dl
add al, cl
jmp 0x51fe13
mov cl, byte [esp + 0x2f]
mov bl, byte [esp + 0x27]
sub cl, bl
mov bl, byte [eax]
sub cl, bl
mov bl, byte [eax + 2]
add dl, cl
mov cl, byte [esp + 0x29]
mov byte [esp + 0x34], dl
mov dl, byte [esp + 0x31]
sub dl, bl
sub dl, cl
jmp 0x51fe0d
mov cl, byte [esp + 0x31]
mov bl, byte [eax + 2]
sub cl, bl
mov bl, byte [esp + 0x29]
sub cl, bl
add dl, cl
mov byte [esp + 0x34], dl
mov dl, byte [eax]
mov al, byte [esp + 0x36]
add al, dl
mov byte [esp + 0x36], al
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ecx, eax
pop edi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], esi
pop esi
pop ebp
pop ebx
mov dword [ecx + 8], edx
add esp, 0x30
ret 8