Function at 0x474ce0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402366
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402348
mov eax, dword [0x477334]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [eax], edi
mov ecx, dword [0x477334]
mov dword [ecx + 4], 0x77073096
mov edx, dword [0x477334]
mov dword [edx + 8], 0xee0e612c
mov eax, dword [0x477334]
mov dword [eax + 0xc], 0x990951ba
mov ecx, dword [0x477334]
mov dword [ecx + 0x10], 0x76dc419
mov edx, dword [0x477334]
mov dword [edx + 0x14], 0x706af48f
mov eax, dword [0x477334]
mov dword [eax + 0x18], 0xe963a535
mov ecx, dword [0x477334]
mov dword [ecx + 0x1c], 0x9e6495a3
mov edx, dword [0x477334]
mov dword [edx + 0x20], 0xedb8832
mov eax, dword [0x477334]
mov dword [eax + 0x24], 0x79dcb8a4
mov ecx, dword [0x477334]
mov dword [ecx + 0x28], 0xe0d5e91e
mov edx, dword [0x477334]
mov dword [edx + 0x2c], 0x97d2d988
mov eax, dword [0x477334]
mov dword [eax + 0x30], 0x9b64c2b
mov ecx, dword [0x477334]
mov dword [ecx + 0x34], 0x7eb17cbd
mov edx, dword [0x477334]
mov dword [edx + 0x38], 0xe7b82d07
mov eax, dword [0x477334]
mov dword [eax + 0x3c], 0x90bf1d91
mov ecx, dword [0x477334]
mov dword [ecx + 0x40], 0x1db71064
mov edx, dword [0x477334]
mov dword [edx + 0x44], 0x6ab020f2
mov eax, dword [0x477334]
mov dword [eax + 0x48], 0xf3b97148
mov ecx, dword [0x477334]
mov dword [ecx + 0x4c], 0x84be41de
mov edx, dword [0x477334]
mov dword [edx + 0x50], 0x1adad47d
mov eax, dword [0x477334]
mov dword [eax + 0x54], 0x6ddde4eb
mov ecx, dword [0x477334]
mov dword [ecx + 0x58], 0xf4d4b551
mov edx, dword [0x477334]
mov dword [edx + 0x5c], 0x83d385c7
mov eax, dword [0x477334]
mov dword [eax + 0x60], 0x136c9856
mov ecx, dword [0x477334]
mov dword [ecx + 0x64], 0x646ba8c0
mov edx, dword [0x477334]
mov dword [edx + 0x68], 0xfd62f97a
mov eax, dword [0x477334]
mov dword [eax + 0x6c], 0x8a65c9ec
mov ecx, dword [0x477334]
mov dword [ecx + 0x70], 0x14015c4f
mov edx, dword [0x477334]
mov dword [edx + 0x74], 0x63066cd9
mov eax, dword [0x477334]
mov dword [eax + 0x78], 0xfa0f3d63
mov ecx, dword [0x477334]
mov dword [ecx + 0x7c], 0x8d080df5
mov edx, dword [0x477334]
mov dword [edx + 0x80], 0x3b6e20c8
mov eax, dword [0x477334]
mov dword [eax + 0x84], 0x4c69105e
mov ecx, dword [0x477334]
mov dword [ecx + 0x88], 0xd56041e4
mov edx, dword [0x477334]
mov dword [edx + 0x8c], 0xa2677172
mov eax, dword [0x477334]
mov dword [eax + 0x90], 0x3c03e4d1
mov ecx, dword [0x477334]
mov dword [ecx + 0x94], 0x4b04d447
mov edx, dword [0x477334]
mov dword [edx + 0x98], 0xd20d85fd
mov eax, dword [0x477334]
mov dword [eax + 0x9c], 0xa50ab56b
mov ecx, dword [0x477334]
mov dword [ecx + 0xa0], 0x35b5a8fa
mov edx, dword [0x477334]
mov dword [edx + 0xa4], 0x42b2986c
mov eax, dword [0x477334]
mov dword [eax + 0xa8], 0xdbbbc9d6
mov ecx, dword [0x477334]
mov dword [ecx + 0xac], 0xacbcf940
mov edx, dword [0x477334]
mov dword [edx + 0xb0], 0x32d86ce3
mov eax, dword [0x477334]
mov dword [eax + 0xb4], 0x45df5c75
mov ecx, dword [0x477334]
mov dword [ecx + 0xb8], 0xdcd60dcf
mov edx, dword [0x477334]
mov dword [edx + 0xbc], 0xabd13d59
mov eax, dword [0x477334]
mov dword [eax + 0xc0], 0x26d930ac
mov ecx, dword [0x477334]
mov dword [ecx + 0xc4], 0x51de003a
mov edx, dword [0x477334]
mov dword [edx + 0xc8], 0xc8d75180
mov eax, dword [0x477334]
mov dword [eax + 0xcc], 0xbfd06116
mov ecx, dword [0x477334]
mov dword [ecx + 0xd0], 0x21b4f4b5
mov edx, dword [0x477334]
mov dword [edx + 0xd4], 0x56b3c423
mov eax, dword [0x477334]
mov dword [eax + 0xd8], 0xcfba9599
mov ecx, dword [0x477334]
mov dword [ecx + 0xdc], 0xb8bda50f
mov edx, dword [0x477334]
mov dword [edx + 0xe0], 0x2802b89e
mov eax, dword [0x477334]
mov dword [eax + 0xe4], 0x5f058808
mov ecx, dword [0x477334]
mov dword [ecx + 0xe8], 0xc60cd9b2
mov edx, dword [0x477334]
mov dword [edx + 0xec], 0xb10be924
mov eax, dword [0x477334]
mov dword [eax + 0xf0], 0x2f6f7c87
mov ecx, dword [0x477334]
mov dword [ecx + 0xf4], 0x58684c11
mov edx, dword [0x477334]
mov dword [edx + 0xf8], 0xc1611dab
mov eax, dword [0x477334]
mov dword [eax + 0xfc], 0xb6662d3d
mov ecx, dword [0x477334]
mov dword [ecx + 0x100], 0x76dc4190
mov edx, dword [0x477334]
mov dword [edx + 0x104], 0x1db7106
mov eax, dword [0x477334]
mov dword [eax + 0x108], 0x98d220bc
mov ecx, dword [0x477334]
mov dword [ecx + 0x10c], 0xefd5102a
mov edx, dword [0x477334]
mov dword [edx + 0x110], 0x71b18589
mov eax, dword [0x477334]
mov dword [eax + 0x114], 0x6b6b51f
mov ecx, dword [0x477334]
mov dword [ecx + 0x118], 0x9fbfe4a5
mov edx, dword [0x477334]
mov dword [edx + 0x11c], 0xe8b8d433
mov eax, dword [0x477334]
mov dword [eax + 0x120], 0x7807c9a2
mov ecx, dword [0x477334]
mov dword [ecx + 0x124], 0xf00f934
mov edx, dword [0x477334]
mov dword [edx + 0x128], 0x9609a88e
mov eax, dword [0x477334]
mov dword [eax + 0x12c], 0xe10e9818
mov ecx, dword [0x477334]
mov dword [ecx + 0x130], 0x7f6a0dbb
mov edx, dword [0x477334]
mov dword [edx + 0x134], 0x86d3d2d
mov eax, dword [0x477334]
mov dword [eax + 0x138], 0x91646c97
mov ecx, dword [0x477334]
mov dword [ecx + 0x13c], 0xe6635c01
mov edx, dword [0x477334]
mov dword [edx + 0x140], 0x6b6b51f4
mov eax, dword [0x477334]
mov dword [eax + 0x144], 0x1c6c6162
mov ecx, dword [0x477334]
mov dword [ecx + 0x148], 0x856530d8
mov edx, dword [0x477334]
mov dword [edx + 0x14c], 0xf262004e
mov eax, dword [0x477334]
mov dword [eax + 0x150], 0x6c0695ed
mov ecx, dword [0x477334]
mov dword [ecx + 0x154], 0x1b01a57b
mov edx, dword [0x477334]
mov dword [edx + 0x158], 0x8208f4c1
mov eax, dword [0x477334]
mov dword [eax + 0x15c], 0xf50fc457
mov ecx, dword [0x477334]
mov dword [ecx + 0x160], 0x65b0d9c6
mov edx, dword [0x477334]
mov dword [edx + 0x164], 0x12b7e950
mov eax, dword [0x477334]
mov dword [eax + 0x168], 0x8bbeb8ea
mov ecx, dword [0x477334]
mov dword [ecx + 0x16c], 0xfcb9887c
mov edx, dword [0x477334]
mov dword [edx + 0x170], 0x62dd1ddf
mov eax, dword [0x477334]
mov dword [eax + 0x174], 0x15da2d49
mov ecx, dword [0x477334]
mov dword [ecx + 0x178], 0x8cd37cf3
mov edx, dword [0x477334]
mov dword [edx + 0x17c], 0xfbd44c65
mov eax, dword [0x477334]
mov dword [eax + 0x180], 0x4db26158
mov ecx, dword [0x477334]
mov dword [ecx + 0x184], 0x3ab551ce
mov edx, dword [0x477334]
mov dword [edx + 0x188], 0xa3bc0074
mov eax, dword [0x477334]
mov dword [eax + 0x18c], 0xd4bb30e2
mov ecx, dword [0x477334]
mov dword [ecx + 0x190], 0x4adfa541
mov edx, dword [0x477334]
mov dword [edx + 0x194], 0x3dd895d7
mov eax, dword [0x477334]
mov dword [eax + 0x198], 0xa4d1c46d
mov ecx, dword [0x477334]
mov dword [ecx + 0x19c], 0xd3d6f4fb
mov edx, dword [0x477334]
mov dword [edx + 0x1a0], 0x4369e96a
mov eax, dword [0x477334]
mov dword [eax + 0x1a4], 0x346ed9fc
mov ecx, dword [0x477334]
mov dword [ecx + 0x1a8], 0xad678846
mov edx, dword [0x477334]
mov dword [edx + 0x1ac], 0xda60b8d0
mov eax, dword [0x477334]
mov dword [eax + 0x1b0], 0x44042d73
mov ecx, dword [0x477334]
mov dword [ecx + 0x1b4], 0x33031de5
mov edx, dword [0x477334]
mov dword [edx + 0x1b8], 0xaa0a4c5f
mov eax, dword [0x477334]
mov dword [eax + 0x1bc], 0xdd0d7cc9
mov ecx, dword [0x477334]
mov dword [ecx + 0x1c0], 0x5005713c
mov edx, dword [0x477334]
mov dword [edx + 0x1c4], 0x270241aa
mov eax, dword [0x477334]
mov dword [eax + 0x1c8], 0xbe0b1010
mov ecx, dword [0x477334]
mov dword [ecx + 0x1cc], 0xc90c2086
mov edx, dword [0x477334]
mov dword [edx + 0x1d0], 0x5768b525
mov eax, dword [0x477334]
mov dword [eax + 0x1d4], 0x206f85b3
mov ecx, dword [0x477334]
mov dword [ecx + 0x1d8], 0xb966d409
mov edx, dword [0x477334]
mov dword [edx + 0x1dc], 0xce61e49f
mov eax, dword [0x477334]
mov dword [eax + 0x1e0], 0x5edef90e
mov ecx, dword [0x477334]
mov dword [ecx + 0x1e4], 0x29d9c998
mov edx, dword [0x477334]
mov dword [edx + 0x1e8], 0xb0d09822
mov eax, dword [0x477334]
mov dword [eax + 0x1ec], 0xc7d7a8b4
mov ecx, dword [0x477334]
mov dword [ecx + 0x1f0], 0x59b33d17
mov edx, dword [0x477334]
mov dword [edx + 0x1f4], 0x2eb40d81
mov eax, dword [0x477334]
mov dword [eax + 0x1f8], 0xb7bd5c3b
mov ecx, dword [0x477334]
mov dword [ecx + 0x1fc], 0xc0ba6cad
mov edx, dword [0x477334]
mov dword [edx + 0x200], 0xedb88320
mov eax, dword [0x477334]
mov dword [eax + 0x204], 0x9abfb3b6
mov ecx, dword [0x477334]
mov dword [ecx + 0x208], 0x3b6e20c
mov edx, dword [0x477334]
mov dword [edx + 0x20c], 0x74b1d29a
mov eax, dword [0x477334]
mov dword [eax + 0x210], 0xead54739
mov ecx, dword [0x477334]
mov dword [ecx + 0x214], 0x9dd277af
mov edx, dword [0x477334]
mov dword [edx + 0x218], 0x4db2615
mov eax, dword [0x477334]
mov dword [eax + 0x21c], 0x73dc1683
mov ecx, dword [0x477334]
mov dword [ecx + 0x220], 0xe3630b12
mov edx, dword [0x477334]
mov dword [edx + 0x224], 0x94643b84
mov eax, dword [0x477334]
mov dword [eax + 0x228], 0xd6d6a3e
mov ecx, dword [0x477334]
mov dword [ecx + 0x22c], 0x7a6a5aa8
mov edx, dword [0x477334]
mov dword [edx + 0x230], 0xe40ecf0b
mov eax, dword [0x477334]
mov dword [eax + 0x234], 0x9309ff9d
mov ecx, dword [0x477334]
mov dword [ecx + 0x238], 0xa00ae27
mov edx, dword [0x477334]
mov dword [edx + 0x23c], 0x7d079eb1
mov eax, dword [0x477334]
mov dword [eax + 0x240], 0xf00f9344
mov ecx, dword [0x477334]
mov dword [ecx + 0x244], 0x8708a3d2
mov edx, dword [0x477334]
mov dword [edx + 0x248], 0x1e01f268
mov eax, dword [0x477334]
mov dword [eax + 0x24c], 0x6906c2fe
mov ecx, dword [0x477334]
mov dword [ecx + 0x250], 0xf762575d
mov edx, dword [0x477334]
mov dword [edx + 0x254], 0x806567cb
mov eax, dword [0x477334]
mov dword [eax + 0x258], 0x196c3671
mov ecx, dword [0x477334]
mov dword [ecx + 0x25c], 0x6e6b06e7
mov edx, dword [0x477334]
mov dword [edx + 0x260], 0xfed41b76
mov eax, dword [0x477334]
mov dword [eax + 0x264], 0x89d32be0
mov ecx, dword [0x477334]
mov dword [ecx + 0x268], 0x10da7a5a
mov edx, dword [0x477334]
mov dword [edx + 0x26c], 0x67dd4acc
mov eax, dword [0x477334]
mov dword [eax + 0x270], 0xf9b9df6f
mov ecx, dword [0x477334]
mov dword [ecx + 0x274], 0x8ebeeff9
mov edx, dword [0x477334]
mov dword [edx + 0x278], 0x17b7be43
mov eax, dword [0x477334]
mov dword [eax + 0x27c], 0x60b08ed5
mov ecx, dword [0x477334]
mov dword [ecx + 0x280], 0xd6d6a3e8
mov edx, dword [0x477334]
mov dword [edx + 0x284], 0xa1d1937e
mov eax, dword [0x477334]
mov dword [eax + 0x288], 0x38d8c2c4
mov ecx, dword [0x477334]
mov dword [ecx + 0x28c], 0x4fdff252
mov edx, dword [0x477334]
mov dword [edx + 0x290], 0xd1bb67f1
mov eax, dword [0x477334]
mov dword [eax + 0x294], 0xa6bc5767
mov ecx, dword [0x477334]
mov dword [ecx + 0x298], 0x3fb506dd
mov edx, dword [0x477334]
mov dword [edx + 0x29c], 0x48b2364b
mov eax, dword [0x477334]
mov dword [eax + 0x2a0], 0xd80d2bda
mov ecx, dword [0x477334]
mov dword [ecx + 0x2a4], 0xaf0a1b4c
mov edx, dword [0x477334]
mov dword [edx + 0x2a8], 0x36034af6
mov eax, dword [0x477334]
mov dword [eax + 0x2ac], 0x41047a60
mov ecx, dword [0x477334]
mov dword [ecx + 0x2b0], 0xdf60efc3
mov edx, dword [0x477334]
mov dword [edx + 0x2b4], 0xa867df55
mov eax, dword [0x477334]
mov dword [eax + 0x2b8], 0x316e8eef
mov ecx, dword [0x477334]
mov dword [ecx + 0x2bc], 0x4669be79
mov edx, dword [0x477334]
mov dword [edx + 0x2c0], 0xcb61b38c
mov eax, dword [0x477334]
mov dword [eax + 0x2c4], 0xbc66831a
mov ecx, dword [0x477334]
mov dword [ecx + 0x2c8], 0x256fd2a0
mov edx, dword [0x477334]
mov dword [edx + 0x2cc], 0x5268e236
mov eax, dword [0x477334]
mov dword [eax + 0x2d0], 0xcc0c7795
mov ecx, dword [0x477334]
mov dword [ecx + 0x2d4], 0xbb0b4703
mov edx, dword [0x477334]
mov dword [edx + 0x2d8], 0x220216b9
mov eax, dword [0x477334]
mov dword [eax + 0x2dc], 0x5505262f
mov ecx, dword [0x477334]
mov dword [ecx + 0x2e0], 0xc5ba3bbe
mov edx, dword [0x477334]
mov dword [edx + 0x2e4], 0xb2bd0b28
mov eax, dword [0x477334]
mov dword [eax + 0x2e8], 0x2bb45a92
mov ecx, dword [0x477334]
mov dword [ecx + 0x2ec], 0x5cb36a04
mov edx, dword [0x477334]
mov dword [edx + 0x2f0], 0xc2d7ffa7
mov eax, dword [0x477334]
mov dword [eax + 0x2f4], 0xb5d0cf31
mov ecx, dword [0x477334]
mov dword [ecx + 0x2f8], 0x2cd99e8b
mov edx, dword [0x477334]
mov dword [edx + 0x2fc], 0x5bdeae1d
mov eax, dword [0x477334]
mov dword [eax + 0x300], 0x9b64c2b0
mov ecx, dword [0x477334]
mov dword [ecx + 0x304], 0xec63f226
mov edx, dword [0x477334]
mov dword [edx + 0x308], 0x756aa39c
mov eax, dword [0x477334]
mov dword [eax + 0x30c], 0x26d930a
mov ecx, dword [0x477334]
mov dword [ecx + 0x310], 0x9c0906a9
mov edx, dword [0x477334]
mov dword [edx + 0x314], 0xeb0e363f
mov eax, dword [0x477334]
mov dword [eax + 0x318], 0x72076785
mov ecx, dword [0x477334]
mov dword [ecx + 0x31c], 0x5005713
mov edx, dword [0x477334]
mov dword [edx + 0x320], 0x95bf4a82
mov eax, dword [0x477334]
mov dword [eax + 0x324], 0xe2b87a14
mov ecx, dword [0x477334]
mov dword [ecx + 0x328], 0x7bb12bae
mov edx, dword [0x477334]
mov dword [edx + 0x32c], 0xcb61b38
mov eax, dword [0x477334]
mov dword [eax + 0x330], 0x92d28e9b
mov ecx, dword [0x477334]
mov dword [ecx + 0x334], 0xe5d5be0d
mov edx, dword [0x477334]
mov dword [edx + 0x338], 0x7cdcefb7
mov eax, dword [0x477334]
mov dword [eax + 0x33c], 0xbdbdf21
mov ecx, dword [0x477334]
mov dword [ecx + 0x340], 0x86d3d2d4
mov edx, dword [0x477334]
mov dword [edx + 0x344], 0xf1d4e242
mov eax, dword [0x477334]
mov dword [eax + 0x348], 0x68ddb3f8
mov ecx, dword [0x477334]
mov dword [ecx + 0x34c], 0x1fda836e
mov edx, dword [0x477334]
mov dword [edx + 0x350], 0x81be16cd
mov eax, dword [0x477334]
mov dword [eax + 0x354], 0xf6b9265b
mov ecx, dword [0x477334]
mov dword [ecx + 0x358], 0x6fb077e1
mov edx, dword [0x477334]
mov dword [edx + 0x35c], 0x18b74777
mov eax, dword [0x477334]
mov dword [eax + 0x360], 0x88085ae6
mov ecx, dword [0x477334]
mov dword [ecx + 0x364], 0xff0f6a70
mov edx, dword [0x477334]
mov dword [edx + 0x368], 0x66063bca
mov eax, dword [0x477334]
mov dword [eax + 0x36c], 0x11010b5c
mov ecx, dword [0x477334]
mov dword [ecx + 0x370], 0x8f659eff
mov edx, dword [0x477334]
mov dword [edx + 0x374], 0xf862ae69
mov eax, dword [0x477334]
mov dword [eax + 0x378], 0x616bffd3
mov ecx, dword [0x477334]
mov dword [ecx + 0x37c], 0x166ccf45
mov edx, dword [0x477334]
mov dword [edx + 0x380], 0xa00ae278
mov eax, dword [0x477334]
mov dword [eax + 0x384], 0xd70dd2ee
mov ecx, dword [0x477334]
mov dword [ecx + 0x388], 0x4e048354
mov edx, dword [0x477334]
mov dword [edx + 0x38c], 0x3903b3c2
mov eax, dword [0x477334]
mov dword [eax + 0x390], 0xa7672661
mov ecx, dword [0x477334]
mov dword [ecx + 0x394], 0xd06016f7
mov edx, dword [0x477334]
mov dword [edx + 0x398], 0x4969474d
mov eax, dword [0x477334]
mov dword [eax + 0x39c], 0x3e6e77db
mov ecx, dword [0x477334]
mov dword [ecx + 0x3a0], 0xaed16a4a
mov edx, dword [0x477334]
mov dword [edx + 0x3a4], 0xd9d65adc
mov eax, dword [0x477334]
mov dword [eax + 0x3a8], 0x40df0b66
mov ecx, dword [0x477334]
mov dword [ecx + 0x3ac], 0x37d83bf0
mov edx, dword [0x477334]
mov dword [edx + 0x3b0], 0xa9bcae53
mov eax, dword [0x477334]
mov dword [eax + 0x3b4], 0xdebb9ec5
mov ecx, dword [0x477334]
mov dword [ecx + 0x3b8], 0x47b2cf7f
mov edx, dword [0x477334]
mov dword [edx + 0x3bc], 0x30b5ffe9
mov eax, dword [0x477334]
mov dword [eax + 0x3c0], 0xbdbdf21c
mov ecx, dword [0x477334]
mov dword [ecx + 0x3c4], 0xcabac28a
mov edx, dword [0x477334]
mov dword [edx + 0x3c8], 0x53b39330
mov eax, dword [0x477334]
mov dword [eax + 0x3cc], 0x24b4a3a6
mov ecx, dword [0x477334]
mov dword [ecx + 0x3d0], 0xbad03605
mov edx, dword [0x477334]
mov dword [edx + 0x3d4], 0xcdd70693
mov eax, dword [0x477334]
mov dword [eax + 0x3d8], 0x54de5729
mov ecx, dword [0x477334]
mov dword [ecx + 0x3dc], 0x23d967bf
mov edx, dword [0x477334]
mov dword [edx + 0x3e0], 0xb3667a2e
mov eax, dword [0x477334]
mov dword [eax + 0x3e4], 0xc4614ab8
mov ecx, dword [0x477334]
mov dword [ecx + 0x3e8], 0x5d681b02
mov edx, dword [0x477334]
mov dword [edx + 0x3ec], 0x2a6f2b94
mov eax, dword [0x477334]
mov dword [eax + 0x3f0], 0xb40bbe37
mov ecx, dword [0x477334]
mov dword [ecx + 0x3f4], 0xc30c8ea1
mov edx, dword [0x477334]
lea ecx, [ebp - 0x18]
mov dword [edx + 0x3f8], 0x5a05df1b
mov eax, dword [0x477334]
mov edx, 0x40e6d0
mov dword [eax + 0x3fc], 0x2d02ef8d
call dword [0x401258]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x401040]
push edi
push ecx
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 1
jo 0x475dba
push eax
push 1
push 0x11
push 0x477320
push 1
push pe_nt_image_headers32
call dword [0x401178]
mov edx, dword [ebp - 0x18]
add esp, 0x1c
push edx
call esi
mov ebx, dword [0x4012d0]
mov dword [ebp - 0x4c], eax
mov eax, 2
mov esi, 1
cmp esi, dword [ebp - 0x4c]
jg 0x475d71
mov ecx, dword [0x477320]
mov dword [ebp - 0x28], eax
cmp ecx, edi
mov dword [ebp - 0x30], eax
je 0x475cf4
cmp word [ecx], 1
jne 0x475cf4
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ecx + 0x14]
mov edi, eax
mov eax, dword [ecx + 0x10]
sar edi, 1
sub edi, edx
cmp edi, eax
jb 0x475cfc
call dword [0x401128]
jmp 0x475cfc
call dword [0x401128]
mov edi, eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push 0x40c204
push eax
push esi
push ecx
call dword [0x4010fc]
mov edx, eax
lea ecx, [ebp - 0x1c]
call ebx
push eax
call dword [0x401084]
mov edx, eax
lea ecx, [ebp - 0x20]
call ebx
push eax
call dword [0x401330]
call dword [0x401154]
mov edx, dword [0x477320]
mov ecx, dword [edx + 0xc]
lea edx, [ebp - 0x20]
push edx
mov byte [ecx + edi], al
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [fcn.00401264]
add esp, 0xc
lea ecx, [ebp - 0x30]
call dword [0x401028]
mov eax, 2
add eax, esi
jo 0x475dba
mov esi, eax
mov eax, 2
xor edi, edi
jmp 0x475cb8
mov word [0x477340], 0xffff
push 0x475da9
wait
jmp 0x475d9f
lea ecx, [ebp - 0x18]
call dword [0x401324]
ret
call dword [0x401220]
sahf
sahf
sahf
sahf
cmc
clc