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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x100]
push esi
push ebx
call fcn.10042550
add esp, 8
test al, 1
jne 0x1004c655
mov eax, edi
lea edi, [esp + 0xc0]
push esi
push eax
push edi
call fcn.10048d6b
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, eax
xor edx, 5
or edx, ecx
jne 0x1004c685
xor eax, eax
inc eax
jmp 0x1004c67d
mov eax, dword [0x1017e714]
mov eax, dword [eax]
test eax, eax
je 0x1004c6cb
mov byte [edi + 0x130], 1
push edi
call fcn.1005df0d
add esp, 4
push edi
call fcn.1005e01b
add esp, 4
xor edx, edx
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0xc8]
mov edx, eax
and dl, 7
cmp dl, 3
je 0x1004c781
mov edx, eax
and edx, 7
cmp edx, 4
jne 0x1004c8a0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
add eax, 0xfffffffe
adc ecx, 0xffffffff
xor edx, edx
mov esi, 3
cmp esi, eax
sbb edx, ecx
jb 0x1004c679
cmp eax, 3
je 0x1004c660
jmp 0x1004c679
mov esi, dword [0x1017d450]
mov al, byte [esi + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x1004c991
movzx eax, al
push eax
push dword [esi]
call fcn.1008c89d
add esp, 8
test al, al
je 0x1004c660
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x1004ca86
mov edi, dword [eax + 0x1c]
mov ebx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
lea ecx, [esp + 0xc0]
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], esi
xor edx, edx
mov dword [ecx + 0x10], edx
lea esi, [esp + 0x128]
mov dword [esi], str.dispatch_no_longer_receiving_messages
mov dword [esi + 4], 1
mov dword [esi + 0x10], edx
mov dword [esi + 8], 0x10109a08
mov dword [esi + 0xc], edx
lea edx, [esp + 0x20]
mov dword [edx], ecx
mov dword [edx + 4], esi
add eax, 0x1c
mov dword [edx + 8], 0x101099f8
lea esi, [esp + 0x64]
push edx
push eax
push esi
call fcn.100779c8
add esp, 0xc
push esi
mov eax, dword [0x1017d450]
push dword [eax]
call fcn.1008cd25
add esp, 8
mov edi, dword [ebp + 8]
jmp 0x1004c660
mov dword [esp + 0x18], esi
mov eax, dword [0x1017e714]
mov eax, dword [eax]
cmp eax, 1
ja 0x1004c86f
mov eax, dword [0x1017d44c]
mov al, byte [eax + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
mov edi, dword [ebp + 8]
jae 0x1004ca63
movzx eax, al
push eax
mov eax, dword [0x1017d44c]
push dword [eax]
call fcn.1008c89d
add esp, 8
test al, al
je 0x1004c872
mov eax, dword [0x1017d44c]
mov eax, dword [eax]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x1004ca97
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x24]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x20]
mov dword [ecx], esi
mov dword [ecx + 4], edx
mov dword [ecx + 8], edi
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
xor esi, esi
mov dword [ecx + 0x10], esi
lea edx, [esp + 0x128]
mov dword [edx], str.read_head_error:
xor edi, edi
inc edi
mov dword [edx + 4], edi
mov dword [edx + 0x10], esi
lea edi, [esp + 0x18]
lea esi, [esp + 0xb8]
mov dword [esi], edi
mov dword [esi + 4], 0x10068edb
mov dword [edx + 8], esi
xor esi, esi
inc esi
mov dword [edx + 0xc], esi
lea esi, [esp + 0x64]
mov dword [esi], ecx
mov dword [esi + 4], edx
add eax, 0x1c
mov dword [esi + 8], 0x101099f8
lea edi, [esp + 0x11c]
push esi
push eax
push edi
call fcn.100779c8
add esp, 0xc
push edi
mov eax, dword [0x1017d44c]
push dword [eax]
call fcn.1008cd25
add esp, 8
lea eax, [esp + 0x18]
mov esi, dword [eax]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x128]
mov dword [eax + 8], esi
mov dword [eax + 4], 0
mov dword [eax], 3
push eax
push ebx
call fcn.10042a2e
add esp, 8
test eax, eax
jne 0x1004ca5c
jmp 0x1004c660
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x78], esi
mov edx, eax
or edx, ecx
mov dl, byte [esp + 0x110]
movups xmm0, xmmword [esp + 0xcc]
movups xmm1, xmmword [esp + 0xdc]
movups xmmword [esp + 0x7c], xmm0
movups xmmword [esp + 0x8c], xmm1
movups xmm0, xmmword [esp + 0xec]
movups xmmword [esp + 0x9c], xmm0
movups xmm0, xmmword [esp + 0xf8]
movups xmmword [esp + 0xa8], xmm0
mov edi, dword [ebp + 8]
mov byte [esp + 0xc], dl
je 0x1004c9af
and dl, 1
movzx edx, dl
lea esi, [esp + 0x128]
push edx
push ecx
push eax
push esi
call fcn.10062a99
add esp, 0x10
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
movups xmm0, xmmword [esi]
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
movups xmm0, xmmword [esi + 0x20]
movaps xmmword [esp + 0x40], xmm0
movsd xmm0, qword [esi + 0x30]
movsd qword [esp + 0x50], xmm0
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x118]
cmp byte [edi + 0x128], 3
je 0x1004c980
mov ecx, esi
mov edi, edx
call fcn.1002bddc
mov edx, edi
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [esi], xmm0
jmp 0x1004c9c1
test ecx, ecx
je 0x1004c660
push esi
call fcn.100ff6f5
add esp, 4
test al, al
jne 0x1004c6e3
jmp 0x1004c660
xor edx, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test byte [esp + 0xc], 2
je 0x1004ca0a
mov esi, edx
push edi
call fcn.100478c2
add esp, 4
lea ecx, [esp + 0xb0]
push edx
push eax
push ecx
call fcn.10046b67
add esp, 0xc
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
cmp eax, 2
je 0x1004ca08
lea eax, [esp + 0x128]
push eax
call fcn.10045b09
add esp, 4
mov edx, esi
lea eax, [esp + 0x128]
lea esi, [esp + 0x70]
mov ecx, 0x12
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x48], edx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x4c], ecx
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [eax + 0x50], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [eax + 0x60], xmm0
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x6c], ecx
push eax
push ebx
call fcn.10042a2e
add esp, 8
test eax, eax
je 0x1004c679
mov edx, eax
jmp 0x1004c67b
mov eax, dword [0x1017d44c]
test ecx, ecx
je 0x1004c872
push eax
call fcn.100ff6f5
add esp, 4
test al, al
jne 0x1004c7af
jmp 0x1004c872
push 0x1010b088
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_main.rs_srcprotoh1dispatch.rs
call fcn.10101180
push 0x1010b05c
jmp 0x1004ca8b