Function at 0x407590
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x16c
mov dword [esp], edx
mov dword [esp + 4], str.previousblockhash
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp + 4], str.target
mov dword [esp], ebx
mov dword [esp + 0x20], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp + 4], str.coinbasetxn
mov dword [esp], ebx
mov esi, eax
call fcn.0045a090
mov dword [esp + 4], str.data
mov dword [esp], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp + 4], str.longpollid
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp + 4], str.expires
mov dword [esp], ebx
mov ebp, eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a5a0
mov dword [esp + 4], 0x480d99
mov dword [esp], ebx
mov dword [esp + 0x2c], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a5a0
mov dword [esp + 4], str.curtime
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a5a0
mov dword [esp + 4], str.submitold
mov dword [esp], ebx
mov dword [esp + 0x34], eax
call fcn.0045a090
mov byte [esp + 0x1c], 0
test eax, eax
je 0x40769f
mov dword [esp + 4], str.submitold
mov dword [esp], ebx
call fcn.0045a090
cmp dword [eax], 5
sete byte [esp + 0x1c]
mov dword [esp + 4], str.bits
mov dword [esp], ebx
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp + 4], str.workid
mov dword [esp], ebx
mov dword [esp + 0x30], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
test esi, esi
mov edx, eax
je 0x4076e1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407757
cmp byte [0x4a2d14], 0
jne 0x4076ff
cmp byte [0x4a0b60], 0
jne 0x4076ff
mov edx, dword [0x47f720]
xor eax, eax
test edx, edx
js 0x40774c
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x60], 0x4e4f534a
mov dword [esp + 0x64], 0x69616620
mov dword [esp + 0x68], 0x2064656c
mov dword [esp + 0x6c], 0x64206f74
mov dword [esp + 0x70], 0x646f6365
mov dword [esp + 0x74], 0x42472065
mov word [esp + 0x78], 0x54
call fcn.0042ace0
xor eax, eax
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
je 0x4076e1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4076e1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4076e1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4076e1
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4076e1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4076e1
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x407da0
cmp byte [0x4a0b60], 0
jne 0x407da0
cmp dword [0x47f720], 3
jg 0x407da0
cmp dword [0x47f720], 3
jle 0x407f80
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.target:__s
mov dword [esp + 4], 0x100
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x40783f
cmp byte [0x4a0b60], 0
je 0x407f80
mov eax, dword [esp + 0x24]
mov dword [esp + 8], str.coinbasetxn:__s
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x4078a2
cmp byte [0x4a0b60], 0
je 0x407f96
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], str.longpollid:__s
mov dword [esp + 4], 0x100
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x407901
cmp byte [0x4a0b60], 0
je 0x407fb0
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], str.expires:__d
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x407964
cmp byte [0x4a0b60], 0
je 0x407fc6
mov eax, dword [esp + 0x28]
mov dword [esp + 8], str.version:__d
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x4079c7
cmp byte [0x4a0b60], 0
je 0x407f41
mov eax, dword [esp + 0x34]
mov dword [esp + 8], str.curtime:__d
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
je 0x407fe0
cmp byte [esp + 0x1c], 0
mov ecx, 0x480d56
mov eax, 0x480d51
mov dword [esp + 8], str.submitold:__s
cmove eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x407a8e
cmp byte [0x4a0b60], 0
je 0x407f60
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.bits:__s
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x407b36
cmp byte [0x4a0b61], 0
je 0x407b36
cmp byte [0x4a2d14], 0
jne 0x407af6
cmp byte [0x4a0b60], 0
jne 0x407af6
cmp dword [0x47f720], 3
jle 0x407b36
lea ecx, [esp + 0x60]
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov dword [esp + 8], str.workid:__s
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
call fcn.00471bd0
mov ecx, dword [esp + 0x18]
mov dword [esp], 4
mov dword [esp + 4], ecx
call fcn.0042ace0
mov edx, dword [esp + 0x14]
lea eax, [edi + 0x238]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
call fcn.00460dd0
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x40801a
lea eax, [edi + 0x23c]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], eax
call fcn.00465930
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x408040
mov eax, dword [edi + 0x280]
mov dword [esp + 0x14], edx
mov dword [esp], eax
call fcn.0047a350
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00471b68
mov dword [edi + 0x280], eax
mov eax, dword [edi + 0x284]
mov dword [esp], eax
call fcn.0047a350
mov dword [esp], ebp
call fcn.00471b68
mov dword [edi + 0x284], eax
mov eax, dword [edi + 0x288]
mov dword [esp], eax
call fcn.0047a350
mov edx, dword [esp + 0x14]
test edx, edx
je 0x407d90
mov dword [esp], edx
call fcn.00471b68
mov dword [edi + 0x288], eax
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x40]
mov dword [esp + 8], 0x20
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00419310
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x240], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x244], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x248], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x24c], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x250], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x254], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x258], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x25c], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00419310
mov eax, dword [esp + 0x5c]
bswap eax
mov dword [edi + 0x260], eax
mov eax, dword [esp + 0x58]
bswap eax
mov dword [edi + 0x264], eax
mov eax, dword [esp + 0x54]
bswap eax
mov dword [edi + 0x268], eax
mov eax, dword [esp + 0x50]
bswap eax
mov dword [edi + 0x26c], eax
mov eax, dword [esp + 0x4c]
bswap eax
mov dword [edi + 0x270], eax
mov eax, dword [esp + 0x48]
bswap eax
mov dword [edi + 0x274], eax
mov eax, dword [esp + 0x44]
bswap eax
mov dword [edi + 0x278], eax
mov eax, dword [esp + 0x40]
bswap eax
mov dword [edi + 0x27c], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x28c], eax
mov eax, dword [esp + 0x28]
bswap eax
mov dword [edi + 0x290], eax
mov eax, dword [esp + 0x34]
bswap eax
mov dword [edi + 0x294], eax
movzx eax, byte [esp + 0x1c]
mov byte [edi + 0x48], al
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
lea eax, [edi + 0x298]
mov dword [esp], eax
call fcn.00419310
mov eax, dword [edi + 0x2a0]
mov dword [esp], eax
call fcn.0047a350
mov dword [edi + 0x2a0], 0
mov dword [edi + 0x2a4], 0
mov dword [esp + 4], str.transactions
mov dword [esp], ebx
call fcn.0045a090
test eax, eax
mov dword [esp + 0x1c], eax
je 0x407d51
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
je 0x407e10
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00462840
test eax, eax
jne 0x408024
call fcn.0045fb60
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004603e0
test eax, eax
jne 0x40801f
call fcn.0045fb60
mov eax, 1
jmp 0x40774c
mov dword [edi + 0x288], 0
jmp 0x407be2
mov eax, dword [esp + 0x20]
mov dword [esp + 8], str.previousblockhash:__s
mov dword [esp + 4], 0x100
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x38], eax
call fcn.00471bd0
mov eax, dword [esp + 0x38]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov edx, dword [esp + 0x14]
cmp byte [0x4a0b61], 0
je 0x407ace
cmp byte [0x4a2d14], 0
jne 0x4077e0
cmp byte [0x4a0b60], 0
jne 0x4077e0
jmp 0x4077cb
mov dword [esp], eax
call fcn.0045a2f0
test eax, eax
mov dword [edi + 0x2a4], eax
je 0x407d51
add eax, 1
shl eax, 5
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0047a380
test eax, eax
mov dword [edi + 0x2a0], eax
je 0x408029
mov eax, dword [edi + 0x2a4]
xor ebx, ebx
test eax, eax
jg 0x407eb2
jmp 0x407d51
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sar ecx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x18], ecx
call fcn.00419310
mov ecx, dword [esp + 0x18]
test al, al
je 0x408007
mov edx, ebx
mov eax, esi
shl edx, 5
add ebx, 1
add edx, dword [edi + 0x2a0]
call fcn.00401d40
mov dword [esp], esi
call fcn.0047a350
cmp ebx, dword [edi + 0x2a4]
jge 0x407d51
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0045a310
mov dword [esp + 4], str.data
mov dword [esp], eax
call fcn.0045a090
mov dword [esp], eax
call fcn.0045a490
mov dword [esp], eax
mov ebp, eax
call fcn.0047a2e0
mov edx, eax
test dl, 3
je 0x407ef1
and eax, 0xfffffffc
add eax, 4
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.0047a380
mov edx, dword [esp + 0x14]
test eax, eax
mov esi, eax
jne 0x407e60
lea eax, [esp + 0x60]
mov esi, str.Failed_to_calloc_txn_bin_in___build_gbt_txns
mov ecx, 0x2d
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0042ace0
mov dword [esp], 1
call fcn.00404a60
cmp dword [0x47f720], 3
jle 0x407fed
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x4079c7
cmp dword [0x47f720], 3
jle 0x407ace
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x407a8e
cmp dword [0x47f720], 3
jle 0x407f96
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x40783f
cmp dword [0x47f720], 3
jle 0x407fb0
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x4078a2
cmp dword [0x47f720], 3
jle 0x407fc6
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x407901
cmp dword [0x47f720], 3
jle 0x407f41
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x407964
cmp byte [0x4a0b60], 0
jne 0x407a21
cmp dword [0x47f720], 3
jle 0x407f60
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
jmp 0x407a21
lea eax, [esp + 0x60]
mov esi, str.Failed_to_hex2bin_txn_bin
mov ecx, 0x1a
jmp 0x407f21
call fcn.0047aad4
call fcn.0047aa68
call fcn.0047aa32
lea eax, [esp + 0x60]
mov esi, str.Failed_to_calloc_txn_hashes_in___build_gbt_txns
mov ecx, 0xc
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x407f25
call fcn.0047aa9e
lea esi, [esi]
lea edi, [edi]