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

Disassembly:
push 0xffffffffffffffff
push 0x100faf5e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1012fdf0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov eax, dword [esp + 0x234]
push 2
xor ebx, ebx
mov ebp, 0xf
push 0x101085f8
lea ecx, [esp + 0x80]
mov dword [esp + 0x44], eax
mov esi, 1
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.10005cd0
push str.._adaptor_cbrom_h.cpp
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x238], ebx
call fcn.10007a10
add esp, 0xc
push str.__line:
push eax
lea eax, [esp + 0xf0]
push eax
mov byte [esp + 0x238], 1
call fcn.10007a10
add esp, 0xc
push 0x101085d4
push eax
lea ecx, [esp + 0xd4]
push ecx
mov byte [esp + 0x238], 2
call fcn.10007a10
sub esp, 0x10
mov edx, esp
mov byte [esp + 0x248], 3
mov dword [esp + 0x54], esp
push 0x101085d0
push eax
push edx
call fcn.10007a10
sub esp, 0x10
mov byte [esp + 0x264], 4
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x21
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cbrom_h::Brom_SendSCERTWithHandle
mov byte [ecx + 4], bl
call fcn.10005cd0
mov ecx, esi
lea edx, [esp + 0x228]
mov byte [esp + 0x264], 3
call fcn.1003be80
mov edi, 0x10
cmp dword [esp + 0xe4], edi
jb 0x10003888
mov eax, dword [esp + 0xd0]
push eax
call fcn.100b3111
add esp, 4
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x100], edi
jb 0x100038b6
mov ecx, dword [esp + 0xec]
push ecx
call fcn.100b3111
add esp, 4
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0x64], edi
jb 0x100038de
mov edx, dword [esp + 0x50]
push edx
call fcn.100b3111
add esp, 4
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x22c], 9
cmp dword [esp + 0x90], edi
jb 0x10003908
mov eax, dword [esp + 0x7c]
push eax
call fcn.100b3111
add esp, 4
push ebx
push 0x10107df7
lea ecx, [esp + 0x1dc]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x1f4], ebp
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
call fcn.10005cd0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xc8]
push ecx
push 8
lea edx, [esp + 0x21c]
push edx
push ebx
push ebx
push 1
push eax
mov byte [esp + 0x248], 0xa
call dword [sym.imp.FlashtoollibEx.dll_flashtool_device_control]
mov esi, eax
cmp esi, ebx
jne 0x10003f0e
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], eax
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [eax], ebx
mov byte [esp + 0x22c], 0xb
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100039c4
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10003ac8
lea edx, [esp + 0x214]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x10012950
mov dword [esp + 0x34], 0x10012960
jmp 0x100039f0
push str.chip_id:_0x_x
lea eax, [esp + 0x118]
push eax
call fcn.10007580
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x230], 0xc
call fcn.1000f490
add esp, 4
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.10007680
mov esi, eax
mov byte [esp + 0x22c], 0xd
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0x22c], 0xe
mov ecx, dword [eax + 4]
mov ebx, dword [esi + 0x14]
add ecx, 4
cmp dword [esi + 0x18], edi
jb 0x10003a61
mov esi, dword [esi + 4]
jmp 0x10003a64
add esi, 4
push esi
call fcn.10008730
lea ecx, [esp + 0x40]
mov byte [esp + 0x22c], 0xd
call fcn.10005040
cmp dword [esp + 0x64], 0x10
jb 0x10003a8f
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0x114]
xor ebx, ebx
push edx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x230], 0xb
call fcn.100031a0
mov eax, dword [esp + 0x28]
lea edi, [ebx + 0x10]
cmp eax, ebx
jne 0x100039f0
lea ebp, [ebx + 0xf]
mov byte [esp + 0x22c], 0xa
cmp eax, ebx
je 0x10003ae1
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x214]
push eax
lea esi, [esp + 0xb0]
call fcn.10003f80
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x238], 0xf
call fcn.100053d0
mov byte [esp + 0x22c], 0xa
cmp dword [esp + 0xc4], edi
jb 0x10003b31
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], edx
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.10007ae0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov byte [esp + 0x22c], 0x10
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10003b7e
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10003c92
lea edx, [esp + 0x1d4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x10012980
mov dword [esp + 0x34], 0x10012990
jmp 0x10003bb2
mov edi, ebx
push str.str_chip_id:__s
lea eax, [esp + 0x118]
push eax
call fcn.10007580
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x230], 0x11
call fcn.1000f490
add esp, 4
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.10007680
mov esi, eax
mov byte [esp + 0x22c], 0x12
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0x22c], 0x13
mov ecx, dword [eax + 4]
mov ebx, dword [esi + 0x14]
add ecx, 4
cmp dword [esi + 0x18], edi
jb 0x10003c23
mov esi, dword [esi + 4]
jmp 0x10003c26
add esi, 4
push esi
call fcn.10008730
lea ecx, [esp + 0x40]
mov byte [esp + 0x22c], 0x12
call fcn.10005040
mov ebx, 0x10
cmp dword [esp + 0x64], ebx
jb 0x10003c55
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
mov byte [esp + 0x230], bl
call fcn.100031a0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10003bb0
xor ebx, ebx
lea edi, [eax + 0x10]
lea ebp, [eax + 0xf]
mov byte [esp + 0x22c], 0xa
cmp eax, ebx
je 0x10003cab
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x1c], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1f8]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.100053d0
lea ecx, [esp + 0x120]
push ecx
call fcn.10004200
mov edx, dword [eax]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x90], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x44]
add esp, 0x20
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x38], ecx
call fcn.100433c0
mov eax, dword [eax]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
call fcn.10007ae0
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov dword [eax], ebx
mov byte [esp + 0x22c], 0x14
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10003d4e
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10003edd
lea edx, [esp + 0x6c]
mov dword [esp + 0xa0], edx
lea eax, [esp + 0x68]
lea edx, [esp + 0x70]
mov ecx, 0x10012300
mov dword [esp + 0x2c], eax
mov eax, 0x10012310
mov dword [esp + 0x94], edx
lea edx, [esp + 0x74]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
jmp 0x10003dc0
push str.wdt_mode:_0x_x_n_wdt_length:_0x_x_n_wdt_restart:_0x_x_n_wdt_swrst:_0x_x
lea eax, [esp + 0x118]
push eax
call fcn.10007580
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x230], 0x15
call fcn.1000f490
lea edx, [esp + 0xa4]
add esp, 4
push edx
call fcn.1000f490
lea ecx, [esp + 0x98]
add esp, 4
push ecx
call fcn.1000f490
lea edx, [esp + 0x44]
add esp, 4
push edx
call fcn.1000f490
add esp, 4
lea edx, [esp + 0xac]
mov ecx, eax
call fcn.10007680
mov esi, eax
mov byte [esp + 0x22c], 0x16
call fcn.100433c0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x10c]
push edx
call fcn.10007b90
add esp, 0xc
mov byte [esp + 0x22c], 0x17
mov ecx, dword [eax + 4]
mov ebx, dword [esi + 0x14]
add ecx, 4
cmp dword [esi + 0x18], edi
jb 0x10003e64
mov esi, dword [esi + 4]
jmp 0x10003e67
add esi, 4
push esi
call fcn.10008730
lea ecx, [esp + 0x104]
mov byte [esp + 0x22c], 0x16
call fcn.10005040
cmp dword [esp + 0xc4], 0x10
jb 0x10003e9b
mov eax, dword [esp + 0xb0]
push eax
call fcn.100b3111
add esp, 4
lea ecx, [esp + 0x114]
xor ebx, ebx
push ecx
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
mov byte [esp + 0x230], 0x14
call fcn.100031a0
mov eax, dword [esp + 0x18]
lea edi, [ebx + 0x10]
cmp eax, ebx
jne 0x10003dc0
lea ebp, [ebx + 0xf]
mov byte [esp + 0x22c], 0xa
cmp eax, ebx
je 0x10003ef6
push eax
call fcn.1005c230
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push ebx
push edi
lea edx, [esp + 0x78]
push edx
push 2
push eax
call dword [sym.imp.FlashtoollibEx.dll_flashtool_device_control]
mov esi, eax
cmp dword [esp + 0x1ec], edi
jb 0x10003f27
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.100b3111
add esp, 4
lea edx, [esp + 0x1f0]
push edx
mov dword [esp + 0x1f0], ebp
mov dword [esp + 0x1ec], ebx
mov byte [esp + 0x1dc], bl
mov dword [esp + 0x230], 0xffffffff
call fcn.1003c130
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100b2691
add esp, 0x21c
ret