Function at 0x1002fb20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1034d4ce
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x10525930]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esp, 0x20
mov edi, esp
mov dword [ebp - 0x68], esp
push 0x104c2ef4
push 0x104c7cb0
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.._brom_boot_rom.cpp
mov dword [ebp - 0x60], eax
call fcn.10003680
lea esi, [ebp - 0x1f0]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.10003680
push esi
push eax
lea ecx, [ebp - 0x1d0]
push ecx
mov byte [ebp - 4], 1
call fcn.10016ef0
add esp, 0xc
push eax
lea edx, [ebp - 0x210]
push edx
mov byte [ebp - 4], 2
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 3
call fcn.10016fa0
add esp, 0xc
push eax
push edi
mov byte [ebp - 4], 4
call fcn.10016fa0
sub esp, 0x14
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.boot_rom::connect
call fcn.10003680
mov ecx, 1
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10053f40
mov esi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x234], esi
jb 0x1002fc39
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.1025a370
add esp, 4
mov edi, 0xf
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
call fcn.10001370
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1f4], esi
jb 0x1002fc7b
mov edx, dword [ebp - 0x208]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x1f4], edi
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x208], 0
call fcn.10001370
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1b4], esi
jb 0x1002fcb8
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 0x1c8], 0
call fcn.10001370
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x214], esi
jb 0x1002fcf5
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
call fcn.10001370
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1d4], esi
jb 0x1002fd32
mov edx, dword [ebp - 0x1e8]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1d8], 0
mov byte [ebp - 0x1e8], 0
call fcn.10001370
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.1003f730
add esp, 8
mov edi, dword [ebp - 0x60]
test ebx, ebx
je 0x1002fd8d
mov edx, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov ecx, edi
add ecx, 0x18
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x6c], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x50]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [ebp - 0x154], edx
mov dword [eax], 0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1002fde1
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x154], 0
je 0x1003016c
push 0x104c2ef4
push 0x104c3e94
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x68], esp
push str.._brom_boot_rom.cpp
call fcn.10003680
lea esi, [ebp - 0xa0]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.10003680
push esi
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 0x10
call fcn.10016ef0
add esp, 0xc
push eax
lea ecx, [ebp - 0xe0]
push ecx
mov byte [ebp - 4], 0x11
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0xc0]
push edx
mov byte [ebp - 4], 0x12
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0x13
call fcn.10016fa0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x154]
push ecx
push eax
lea edx, [ebp - 0x18c]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x15
mov ecx, dword [eax + 4]
add ecx, 4
push str.start_handshake_with_device.
mov ebx, 0x1c
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x1002fecf
mov edx, dword [esi + 8]
jmp 0x1002fed2
lea edx, [esi + 8]
push edx
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x14
call fcn.100132f0
mov edi, 0x10
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x124], edi
jb 0x1002ff09
mov eax, dword [ebp - 0x138]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
call fcn.10239250
cmp dword [ebp - 0x140], 0xfffffffd
je 0x1002ff57
lea eax, [ebp - 0x140]
jmp 0x1002ff40
mov ecx, dword [eax]
cmp ecx, ebx
je 0x1002ff51
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x1002ff40
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x6c]
call fcn.10239290
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0xa4], edi
jb 0x1002ff7a
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.10239250
cmp dword [ebp - 0xc0], 0xfffffffd
je 0x1002ffbc
lea eax, [ebp - 0xc0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x1002ffb6
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x1002ffa5
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0x70]
call fcn.10239290
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xc4], edi
jb 0x1002ffdf
mov eax, dword [ebp - 0xd8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
call fcn.10239250
cmp dword [ebp - 0xe0], 0xfffffffd
je 0x10030027
lea eax, [ebp - 0xe0]
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030021
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030010
mov dword [ebp - 0xe0], ebx
lea ecx, [ebp - 0x54]
call fcn.10239290
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x104], edi
jb 0x1003004a
mov eax, dword [ebp - 0x118]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x118], bl
call fcn.10239250
cmp dword [ebp - 0x120], 0xfffffffd
je 0x1003008c
lea eax, [ebp - 0x120]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030086
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030075
mov dword [ebp - 0x120], ebx
lea ecx, [ebp - 0x7c]
call fcn.10239290
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0xe4], edi
jb 0x100300af
mov eax, dword [ebp - 0xf8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov byte [ebp - 0xf8], bl
call fcn.10239250
cmp dword [ebp - 0x100], 0xfffffffd
je 0x100300f7
lea eax, [ebp - 0x100]
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100300f1
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x100300e0
mov dword [ebp - 0x100], ebx
lea ecx, [ebp - 0x58]
call fcn.10239290
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x84], edi
jb 0x1003011a
mov eax, dword [ebp - 0x98]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10239250
cmp dword [ebp - 0xa0], 0xfffffffd
je 0x1003015c
lea eax, [ebp - 0xa0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030156
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030145
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x64]
call fcn.10239290
mov edi, dword [ebp - 0x60]
jmp 0x1002fde1
mov byte [ebp - 4], 0xd
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp ebx, 4
jae 0x10030ff4
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x10030292
mov eax, dword [eax]
test eax, eax
je 0x10030292
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10030292
mov eax, dword [eax]
push eax
call ecx
test eax, eax
je 0x10030292
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x58], ecx
call fcn.1005c450
mov esi, dword [eax]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov dword [eax], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100301f5
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x60], 0
je 0x10030240
call fcn.1005c450
mov eax, dword [eax]
lea edx, [ebp - 0x60]
push edx
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x17
mov ecx, dword [eax + 4]
add ecx, 4
push str.connect_brom_stopped_by_user._abort.
mov ebx, 0x24
call fcn.10013de0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x16
call fcn.100132f0
jmp 0x100301f5
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x190]
test esi, esi
je 0x10030278
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10030278
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10030278
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.100542c0
mov eax, 0xc0010002
jmp 0x100313c4
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push 1
lea esi, [ebx + 0x1052b0c8]
push esi
call edx
mov byte [ebp - 4], 0x18
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x32
push 1
lea edx, [ebp - 0x49]
push edx
call eax
mov dword [ebp - 4], 0xd
mov al, byte [ebp - 0x49]
cmp al, 0x52
jne 0x100306e7
test ebx, ebx
jne 0x100306e7
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
call edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], 0xffffffff
mov dword [edi + 0x14], 1
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x58], eax
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
mov esi, eax
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov dword [eax], ebx
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x10030340
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x50], ebx
lea ebx, [ebx]
cmp dword [ebp - 0x70], 0
je 0x100306d7
push 0x104c2ef4
push 0x104c7d10
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.._brom_boot_rom.cpp
call fcn.10003680
lea esi, [ebp - 0x140]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x1b
call fcn.10003680
push esi
push eax
lea edx, [ebp - 0xe0]
push edx
mov byte [ebp - 4], 0x1c
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 0x1d
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [ebp - 0x100]
push ecx
mov byte [ebp - 4], 0x1e
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0xa0]
push edx
mov byte [ebp - 4], 0x1f
call fcn.10016fa0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x20
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
push eax
lea edx, [ebp - 0x1ac]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x21
mov ecx, dword [eax + 4]
add ecx, 4
push str.preloader_exist._connect.
mov ebx, 0x19
call fcn.10013de0
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x10030428
mov edx, dword [esi + 8]
jmp 0x1003042b
lea edx, [esi + 8]
push edx
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x20
call fcn.100132f0
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x84], 0x10
jb 0x1003045e
mov eax, dword [ebp - 0x98]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10239250
mov edi, 0xfffffffd
cmp dword [ebp - 0xa0], edi
je 0x100304ab
lea eax, [ebp - 0xa0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100304a5
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030494
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x7c]
call fcn.10239290
mov byte [ebp - 4], 0x1e
cmp dword [ebp - 0xe4], 0x10
jb 0x100304cf
mov eax, dword [ebp - 0xf8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov byte [ebp - 0xf8], bl
call fcn.10239250
cmp dword [ebp - 0x100], edi
je 0x10030517
lea eax, [ebp - 0x100]
lea esp, [esp]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030511
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030500
mov dword [ebp - 0x100], ebx
lea ecx, [ebp - 0x14c]
call fcn.10239290
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x104], 0x10
jb 0x1003053e
mov eax, dword [ebp - 0x118]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x118], bl
call fcn.10239250
cmp dword [ebp - 0x120], edi
je 0x10030587
lea eax, [ebp - 0x120]
jmp 0x10030570
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030581
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030570
mov dword [ebp - 0x120], ebx
lea ecx, [ebp - 0x148]
call fcn.10239290
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0xc4], 0x10
jb 0x100305ae
mov eax, dword [ebp - 0xd8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x144]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
call fcn.10239250
cmp dword [ebp - 0xe0], edi
je 0x100305f7
lea eax, [ebp - 0xe0]
jmp 0x100305e0
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100305f1
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x100305e0
mov dword [ebp - 0xe0], ebx
lea ecx, [ebp - 0x144]
call fcn.10239290
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0xa4], 0x10
jb 0x1003061e
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.10239250
cmp dword [ebp - 0xc0], edi
je 0x1003065f
lea eax, [ebp - 0xc0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030659
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030648
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0x78]
call fcn.10239290
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x124], 0x10
jb 0x10030683
mov eax, dword [ebp - 0x138]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
call fcn.10239250
cmp dword [ebp - 0x140], edi
je 0x100306c7
lea eax, [ebp - 0x140]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100306c1
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x100306b0
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x150]
call fcn.10239290
jmp 0x10030340
mov byte [ebp - 4], 0xd
mov ebx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x60]
inc ebx
jmp 0x10030172
not al
cmp al, byte [esi]
je 0x10030c15
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 4
mov dword [ebp - 0x78], eax
call fcn.1005c450
mov esi, dword [eax]
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov dword [eax], 0
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10030740
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x70], 0
mov edi, edi
cmp dword [ebp - 0x50], 0
je 0x10030bdc
mov al, byte [ebp - 0x49]
movzx edx, byte [ebx + 0x1052b0c8]
push 0x104c2ef4
push 0x104c7d30
not al
movzx ecx, al
push str.__line:
sub esp, 0x20
mov dword [ebp - 0x78], ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push str.._brom_boot_rom.cpp
mov dword [ebp - 0x144], edx
call fcn.10003680
lea esi, [ebp - 0x174]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x23
call fcn.10003680
push esi
push eax
lea edx, [ebp - 0xc0]
push edx
mov byte [ebp - 4], 0x24
call fcn.10016ef0
add esp, 0xc
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 0x25
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [ebp - 0x120]
push ecx
mov byte [ebp - 4], 0x26
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [ebp - 0x100]
push edx
mov byte [ebp - 4], 0x27
call fcn.10016fa0
add esp, 0xc
mov dword [ebp - 0x148], eax
push str.BRom_protocol_error:_ACK_0x_X___0x_X
lea eax, [ebp - 0x308]
push eax
mov byte [ebp - 4], 0x28
call fcn.100167c0
mov byte [ebp - 4], 0x29
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x78]
mov esi, fcn.100776d0
mov ebx, 0x100222b0
push edx
mov edi, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call fcn.1001ec90
lea edx, [ebp - 0x180]
add esp, 4
lea ecx, [ebp - 0x144]
push edx
mov edi, eax
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], ebx
call fcn.1001ec90
add esp, 4
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.100168d0
mov edi, eax
mov byte [ebp - 4], 0x2a
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
push eax
lea edx, [ebp - 0x1ac]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x2b
mov ecx, dword [eax + 4]
mov ebx, dword [edi + 0x18]
add ecx, 4
cmp dword [edi + 0x1c], 0x10
jb 0x100308aa
mov edi, dword [edi + 8]
jmp 0x100308ad
add edi, 8
push edi
call fcn.10013de0
mov edx, dword [ebp - 0x148]
cmp dword [edx + 0x1c], 0x10
mov ebx, dword [edx + 0x18]
jb 0x100308c7
mov edx, dword [edx + 8]
jmp 0x100308ca
add edx, 8
push edx
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x2a
call fcn.100132f0
mov byte [ebp - 4], 0x29
cmp dword [ebp - 0x84], 0x10
jb 0x100308fd
mov eax, dword [ebp - 0x98]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10239250
mov edi, 0xfffffffd
cmp dword [ebp - 0xa0], edi
je 0x1003094d
lea eax, [ebp - 0xa0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030947
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030936
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x14c]
call fcn.10239290
lea eax, [ebp - 0x308]
push eax
mov byte [ebp - 4], 0x28
call fcn.1000b890
mov byte [ebp - 4], 0x27
cmp dword [ebp - 0xe4], 0x10
jb 0x10030984
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov byte [ebp - 0xf8], bl
call fcn.10239250
cmp dword [ebp - 0x100], edi
je 0x100309c7
lea eax, [ebp - 0x100]
mov edi, edi
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100309c1
mov dword [ecx], ebx
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
jmp 0x100309b0
mov dword [ebp - 0x100], ebx
lea ecx, [ebp - 0x64]
call fcn.10239290
mov byte [ebp - 4], 0x26
cmp dword [ebp - 0x104], 0x10
jb 0x100309eb
mov edx, dword [ebp - 0x118]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x118], bl
call fcn.10239250
cmp dword [ebp - 0x120], edi
je 0x10030a2c
lea eax, [ebp - 0x120]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030a26
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030a15
mov dword [ebp - 0x120], ebx
lea ecx, [ebp - 0x58]
call fcn.10239290
mov byte [ebp - 4], 0x25
cmp dword [ebp - 0xc4], 0x10
jb 0x10030a50
mov eax, dword [ebp - 0xd8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
call fcn.10239250
cmp dword [ebp - 0xe0], edi
je 0x10030a97
lea eax, [ebp - 0xe0]
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030a91
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030a80
mov dword [ebp - 0xe0], ebx
lea ecx, [ebp - 0x7c]
call fcn.10239290
mov byte [ebp - 4], 0x24
cmp dword [ebp - 0xa4], 0x10
jb 0x10030abb
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.10239250
cmp dword [ebp - 0xc0], edi
je 0x10030afc
lea eax, [ebp - 0xc0]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030af6
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030ae5
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0x74]
call fcn.10239290
mov byte [ebp - 4], 0x23
cmp dword [ebp - 0x124], 0x10
jb 0x10030b20
mov eax, dword [ebp - 0x138]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
call fcn.10239250
cmp dword [ebp - 0x140], edi
je 0x10030b67
lea eax, [ebp - 0x140]
lea ebx, [ebx]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030b61
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030b50
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x6c]
call fcn.10239290
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0x158], 0x10
jb 0x10030b8b
mov eax, dword [ebp - 0x16c]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
call fcn.10239250
cmp dword [ebp - 0x174], edi
je 0x10030bcc
lea eax, [ebp - 0x174]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030bc6
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030bb5
mov dword [ebp - 0x174], ebx
lea ecx, [ebp - 0x60]
call fcn.10239290
mov ebx, dword [ebp - 0x54]
jmp 0x10030740
push 0x5b
push str.._brom_boot_rom.cpp
push str.int___thiscall_boot_rom::connect_const_struct_callbacks_struct_t__
push 1
sub esp, 0x20
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x68], esp
push str.BRom_pototcol_error.
call fcn.10003680
lea esi, [ebp - 0x350]
call fcn.1000b6e0
push eax
mov byte [ebp - 4], 0x2c
call fcn.100170a0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x58], eax
call fcn.1005c450
mov esi, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.10016d30
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov dword [eax], 0
mov byte [ebp - 4], 0x2d
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10030c60
push eax
call fcn.1029f770
add esp, 4
mov dword [ebp - 0x6c], 0
lea esp, [esp]
cmp dword [ebp - 0x74], 0
je 0x10030fd7
movzx edx, byte [ebp - 0x49]
movzx eax, byte [ebx + 0x1052b0c8]
push 0x104c2ef4
push 0x104c3fe0
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.._brom_boot_rom.cpp
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x58], eax
call fcn.10003680
lea esi, [ebp - 0x140]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x2e
call fcn.10003680
push esi
push eax
lea ecx, [ebp - 0xe0]
push ecx
mov byte [ebp - 4], 0x2f
call fcn.10016ef0
add esp, 0xc
push eax
lea edx, [ebp - 0x120]
push edx
mov byte [ebp - 4], 0x30
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 0x31
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov byte [ebp - 4], 0x32
call fcn.10016fa0
add esp, 0xc
mov dword [ebp - 0x5c], eax
push str.send_0x_02X._receive_0x_02X
lea edx, [ebp - 0x308]
push edx
mov byte [ebp - 4], 0x33
call fcn.100167c0
mov byte [ebp - 4], 0x34
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x58]
mov esi, fcn.100776d0
mov ebx, 0x100222b0
push edx
mov edi, eax
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], ebx
call fcn.1001ec90
lea edx, [ebp - 0x18c]
add esp, 4
lea ecx, [ebp - 0x80]
push edx
mov edi, eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x184], ebx
call fcn.1001ec90
add esp, 4
lea edx, [ebp - 0x174]
mov ecx, eax
call fcn.100168d0
mov edi, eax
mov byte [ebp - 4], 0x35
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [ebp - 0x74]
push ecx
push eax
lea edx, [ebp - 0x1a0]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [ebp - 4], 0x36
mov ecx, dword [eax + 4]
mov ebx, dword [edi + 0x18]
add ecx, 4
cmp dword [edi + 0x1c], 0x10
jb 0x10030dc9
mov edi, dword [edi + 8]
jmp 0x10030dcc
add edi, 8
push edi
call fcn.10013de0
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x1c], 0x10
mov ebx, dword [edx + 0x18]
jb 0x10030de3
mov edx, dword [edx + 8]
jmp 0x10030de6
add edx, 8
push edx
mov ecx, eax
call fcn.10013de0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x35
call fcn.100132f0
mov edi, 0x10
mov byte [ebp - 4], 0x34
cmp dword [ebp - 0x158], edi
jb 0x10030e1d
mov eax, dword [ebp - 0x16c]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
call fcn.10239250
cmp dword [ebp - 0x174], 0xfffffffd
je 0x10030e67
lea eax, [ebp - 0x174]
nop
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10030e61
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax], edx
jmp 0x10030e50
mov dword [ebp - 0x174], ebx
lea ecx, [ebp - 0x68]
call fcn.10239290
lea eax, [ebp - 0x308]
push eax
mov byte [ebp - 4], 0x33
call fcn.1000b890
mov byte [ebp - 4], 0x32
cmp dword [ebp - 0x84], edi
jb 0x10030e9a
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10001370
mov byte [ebp - 4], 0x31
cmp dword [ebp - 0xe4], edi
jb 0x10030ed2
mov edx, dword [ebp - 0xf8]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov byte [ebp - 0xf8], bl
call fcn.10001370
mov byte [ebp - 4], 0x30
cmp dword [ebp - 0x104], edi
jb 0x10030f0a
mov eax, dword [ebp - 0x118]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x118], bl
call fcn.10001370
mov byte [ebp - 4], 0x2f
cmp dword [ebp - 0xc4], edi
jb 0x10030f42
mov ecx, dword [ebp - 0xd8]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
call fcn.10001370
mov byte [ebp - 4], 0x2e
cmp dword [ebp - 0xa4], edi
jb 0x10030f7a
mov edx, dword [ebp - 0xb8]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.10001370
mov byte [ebp - 4], 0x2d
cmp dword [ebp - 0x124], edi
jb 0x10030fb2
mov eax, dword [ebp - 0x138]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
call fcn.10001370
mov ebx, dword [ebp - 0x54]
jmp 0x10030c60
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x60]
inc ebx
jmp 0x10030172
mov dword [ebp - 4], 0xb
mov esi, dword [ebp - 0x190]
test esi, esi
je 0x1003102f
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003102f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003102f
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.100542c0
xor eax, eax
jmp 0x100313c4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102595a0
mov esp, ebp
pop ebp
ret 8